Fill Session.Started

This commit is contained in:
Vojtěch Káně
2021-03-24 19:30:00 +01:00
parent e2e7130e40
commit 782f96ebbd
2 changed files with 5 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ func (Session) Fields() []ent.Field {
return []ent.Field{
field.UUID("id", uuid.Nil).Immutable(),
field.Time("created").Immutable(),
field.Time("started").Nillable().Optional(), // TODO remove?
field.Time("started").Nillable().Optional(),
field.String("code").MinLen(6).MaxLen(6).Immutable().Unique(),
}
}