backend: add note field on license
This commit is contained in:
parent
697396c892
commit
e797311433
4 changed files with 161 additions and 21 deletions
|
@ -23,6 +23,7 @@ impl MigrationTrait for Migration {
|
|||
.col(ColumnDef::new(License::End).timestamp_with_time_zone())
|
||||
.col(ColumnDef::new(License::Amount).integer())
|
||||
.col(ColumnDef::new(License::Key).string().not_null())
|
||||
.col(ColumnDef::new(License::Note).string())
|
||||
.col(ColumnDef::new(License::GroupId).uuid().not_null())
|
||||
.foreign_key(
|
||||
ForeignKey::create()
|
||||
|
@ -54,6 +55,7 @@ enum License {
|
|||
Amount,
|
||||
Key,
|
||||
GroupId,
|
||||
Note,
|
||||
}
|
||||
|
||||
#[derive(DeriveIden)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue