Add todo schema
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"ersteller-lib/starter/ent/googleauth"
|
||||
"ersteller-lib/starter/ent/todo"
|
||||
"ersteller-lib/starter/ent/user"
|
||||
"fmt"
|
||||
"reflect"
|
||||
@@ -75,6 +76,7 @@ func checkColumn(t, c string) error {
|
||||
initCheck.Do(func() {
|
||||
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
|
||||
googleauth.Table: googleauth.ValidColumn,
|
||||
todo.Table: todo.ValidColumn,
|
||||
user.Table: user.ValidColumn,
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user