backend: add note field on license

This commit is contained in:
Sphereso 2024-07-11 20:21:07 +02:00
parent 697396c892
commit e797311433
4 changed files with 161 additions and 21 deletions

View file

@ -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)]