diff options
| author | Tolmachev Igor <me@igorek.dev> | 2025-10-22 17:00:28 +0300 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2025-10-22 17:00:28 +0300 |
| commit | e864d2653d50ba1c920776aaa14a1625c9fc9da4 (patch) | |
| tree | 4e4089d3fc249f9b4a64a9866b48a0e1f5de844b /migration | |
| parent | 67ed4e6bb82ac2645f9b7a014a8d635d7b80e821 (diff) | |
| download | queue_server-e864d2653d50ba1c920776aaa14a1625c9fc9da4.tar.gz queue_server-e864d2653d50ba1c920776aaa14a1625c9fc9da4.zip | |
Add invite tokens
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/src/m0_init_tables.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migration/src/m0_init_tables.rs b/migration/src/m0_init_tables.rs index 5e9a621..6ce86e1 100644 --- a/migration/src/m0_init_tables.rs +++ b/migration/src/m0_init_tables.rs | |||
| @@ -30,7 +30,7 @@ enum InviteTokens { | |||
| 30 | Token, | 30 | Token, |
| 31 | QueueId, | 31 | QueueId, |
| 32 | Name, | 32 | Name, |
| 33 | IsRevoked, | 33 | ExpirationDate, |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | #[derive(DeriveIden)] | 36 | #[derive(DeriveIden)] |
| @@ -121,7 +121,7 @@ impl MigrationTrait for Migration { | |||
| 121 | .on_update(ForeignKeyAction::Cascade), | 121 | .on_update(ForeignKeyAction::Cascade), |
| 122 | ) | 122 | ) |
| 123 | .col(string(InviteTokens::Name)) | 123 | .col(string(InviteTokens::Name)) |
| 124 | .col(boolean(InviteTokens::IsRevoked).default(false)) | 124 | .col(timestamp_null(InviteTokens::ExpirationDate)) |
| 125 | .to_owned(), | 125 | .to_owned(), |
| 126 | ) | 126 | ) |
| 127 | .await?; | 127 | .await?; |
