mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 00:30:27 +00:00
update db schema
This commit is contained in:
parent
e0ff5707eb
commit
dc65903629
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,7 @@ func (Item) Indexes() []ent.Index {
|
|||
index.Fields("manufacturer"),
|
||||
index.Fields("model_number"),
|
||||
index.Fields("serial_number"),
|
||||
index.Fields("archived"),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -45,6 +46,8 @@ func (Item) Fields() []ent.Field {
|
|||
Default(1),
|
||||
field.Bool("insured").
|
||||
Default(false),
|
||||
field.Bool("archived").
|
||||
Default(false),
|
||||
|
||||
// ------------------------------------
|
||||
// item identification
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue