mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-26 18:56:24 -07:00
Update init SQL files and schema diagram now that the wordfilter table is no longer necessary
This commit is contained in:
parent
4802c837fb
commit
83bc642674
7 changed files with 60 additions and 254 deletions
|
@ -152,6 +152,15 @@ func (fc *FilterCondition) insert(ctx context.Context, tx *sql.Tx) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// FilterHit represents a match from a post filter to an attempted post
|
||||
// table: DBPREFIXfilter_hits
|
||||
type FilterHit struct {
|
||||
ID int // sql: id
|
||||
FilterID int // sql: filter_id
|
||||
PostData string // sql: post_data
|
||||
MatchTime time.Time // sql: match_time
|
||||
}
|
||||
|
||||
// Upload represents a file attached to a post.
|
||||
// table: DBPREFIXfiles
|
||||
type Upload struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue