final touches

This commit is contained in:
2023-02-16 11:26:41 +01:00
parent a95445c53c
commit 6e54b29288
11 changed files with 114 additions and 32 deletions

View File

@ -19,6 +19,7 @@ impl MigrationTrait for Migration {
.primary_key(),
)
.col(ColumnDef::new(User::Name).string().not_null().unique_key())
.col(ColumnDef::new(User::Pw).string())
.col(
ColumnDef::new(User::IsCox)
.boolean()
@ -49,6 +50,7 @@ pub enum User {
Table,
Id,
Name,
Pw,
IsCox,
IsAdmin,
}