move stuff around + further work on domain blocks

This commit is contained in:
tsmethurst 2021-06-28 19:45:38 +02:00
commit 5e2ba03adc
29 changed files with 279 additions and 50 deletions

View file

@ -25,7 +25,7 @@ type DomainBlock struct {
// ID of this block in the database
ID string `pg:"type:CHAR(26),pk,notnull,unique"`
// blocked domain
Domain string `pg:",notnull"`
Domain string `pg:",pk,notnull,unique"`
// When was this block created
CreatedAt time.Time `pg:"type:timestamp,notnull,default:now()"`
// When was this block updated