Skip to content

Commit

Permalink
add usage_limit to organization
Browse files Browse the repository at this point in the history
  • Loading branch information
lyang2821 committed Aug 22, 2024
1 parent 03e6e86 commit 43bc80c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lapdev-db/src/entities/organization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub struct Model {
pub auto_stop: Option<i32>,
pub allow_workspace_change_auto_stop: bool,
pub last_auto_stop_check: Option<DateTimeWithTimeZone>,
pub usage_limit: i64,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ impl MigrationTrait for Migration {
.not_null(),
)
.col(ColumnDef::new(Organization::LastAutoStopCheck).timestamp_with_time_zone())
.col(
ColumnDef::new(Organization::UsageLimit)
.big_integer()
.not_null(),
)
.to_owned(),
)
.await?;
Expand Down Expand Up @@ -62,4 +67,5 @@ enum Organization {
AutoStop,
AllowWorkspaceChangeAutoStop,
LastAutoStopCheck,
UsageLimit,
}

0 comments on commit 43bc80c

Please sign in to comment.