Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IdxCreators = []IndexQueryCreator{}
https://techblog.enechain.com/entry/bun-atlas-migration-setup-guide
Functions ¶
This section is empty.
Types ¶
type IndexQueryCreator ¶
type IndexQueryCreator func(db *bun.DB) *bun.CreateIndexQuery
type Note ¶
type Note struct { bun.BaseModel `bun:"table:notes,alias:n"` ID string `bun:",pk"` ReactionID string `bun:",notnull"` UserID string `bun:",notnull"` // `bun:",pk"` ここをprimary keyにするとm2mのリレーション結合が壊れる ReactionEmojiName string `bun:",notnull"` Text string CreatedAt time.Time User User `bun:"rel:belongs-to,join:user_id=id"` Reaction ReactionEmoji `bun:"rel:belongs-to,join:reaction_emoji_name=name"` Tags []HashTag `bun:"m2m:note_to_tags,join:Note=HashTag"` Files []File `bun:"m2m:note_to_files,join:Note=File"` }
type NoteToFile ¶
type ReactionEmoji ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.