diff --git a/crates/entities/src/analytic_views.rs b/crates/entities/src/analytic_views.rs index d41c380..465068d 100644 --- a/crates/entities/src/analytic_views.rs +++ b/crates/entities/src/analytic_views.rs @@ -24,6 +24,22 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -31,13 +47,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/api_activity_logs.rs b/crates/entities/src/api_activity_logs.rs index 7ea594a..a10ba54 100644 --- a/crates/entities/src/api_activity_logs.rs +++ b/crates/entities/src/api_activity_logs.rs @@ -30,6 +30,23 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/api_tokens.rs b/crates/entities/src/api_tokens.rs index 8f6a7c2..c3b6376 100644 --- a/crates/entities/src/api_tokens.rs +++ b/crates/entities/src/api_tokens.rs @@ -10,6 +10,7 @@ pub struct Model { pub updated_at: DateTimeWithTimeZone, #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, + #[sea_orm(unique)] pub token: String, pub label: String, pub user_type: i16, @@ -26,6 +27,40 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm(has_many = "super::importers::Entity")] + Importers, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users6, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users5, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users4, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, #[sea_orm( belongs_to = "super::users::Entity", from = "Column::UserId", @@ -33,12 +68,44 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Users, + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, + #[sea_orm(has_many = "super::workspace_integrations::Entity")] + WorkspaceIntegrations, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Users.def() + Relation::Importers.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::WorkspaceIntegrations.def() } } diff --git a/crates/entities/src/auth_group.rs b/crates/entities/src/auth_group.rs index 68d713e..8ca0fb8 100644 --- a/crates/entities/src/auth_group.rs +++ b/crates/entities/src/auth_group.rs @@ -8,10 +8,28 @@ use serde::{Deserialize, Serialize}; pub struct Model { #[sea_orm(primary_key)] pub id: i32, + #[sea_orm(unique)] pub name: String, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm(has_many = "super::auth_group_permissions::Entity")] + AuthGroupPermissions, + #[sea_orm(has_many = "super::users_groups::Entity")] + UsersGroups, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::AuthGroupPermissions.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::UsersGroups.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/auth_group_permissions.rs b/crates/entities/src/auth_group_permissions.rs index 0b115bd..f76c77e 100644 --- a/crates/entities/src/auth_group_permissions.rs +++ b/crates/entities/src/auth_group_permissions.rs @@ -13,6 +13,35 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::auth_group::Entity", + from = "Column::GroupId", + to = "super::auth_group::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + AuthGroup, + #[sea_orm( + belongs_to = "super::auth_permission::Entity", + from = "Column::PermissionId", + to = "super::auth_permission::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + AuthPermission, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::AuthGroup.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::AuthPermission.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/auth_permission.rs b/crates/entities/src/auth_permission.rs index 9f92e70..9df2c86 100644 --- a/crates/entities/src/auth_permission.rs +++ b/crates/entities/src/auth_permission.rs @@ -14,6 +14,37 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm(has_many = "super::auth_group_permissions::Entity")] + AuthGroupPermissions, + #[sea_orm( + belongs_to = "super::django_content_type::Entity", + from = "Column::ContentTypeId", + to = "super::django_content_type::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + DjangoContentType, + #[sea_orm(has_many = "super::users_user_permissions::Entity")] + UsersUserPermissions, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::AuthGroupPermissions.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::DjangoContentType.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::UsersUserPermissions.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/authtoken_token.rs b/crates/entities/src/authtoken_token.rs index ce18c2b..5423efb 100644 --- a/crates/entities/src/authtoken_token.rs +++ b/crates/entities/src/authtoken_token.rs @@ -9,6 +9,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub key: String, pub created: DateTimeWithTimeZone, + #[sea_orm(unique)] pub user_id: Uuid, } @@ -21,13 +22,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Users, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Users.def() - } + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/comment_reactions.rs b/crates/entities/src/comment_reactions.rs index b883e2f..dc72aa1 100644 --- a/crates/entities/src/comment_reactions.rs +++ b/crates/entities/src/comment_reactions.rs @@ -28,7 +28,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - IssueComments, + IssueComments2, + #[sea_orm( + belongs_to = "super::issue_comments::Entity", + from = "Column::CommentId", + to = "super::issue_comments::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + IssueComments1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -36,7 +44,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ActorId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -44,25 +84,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueComments.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/cycle_favorites.rs b/crates/entities/src/cycle_favorites.rs index ffe113b..85289e5 100644 --- a/crates/entities/src/cycle_favorites.rs +++ b/crates/entities/src/cycle_favorites.rs @@ -27,7 +27,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Cycles, + Cycles2, + #[sea_orm( + belongs_to = "super::cycles::Entity", + from = "Column::CycleId", + to = "super::cycles::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Cycles1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -35,7 +43,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users4, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, #[sea_orm( belongs_to = "super::users::Entity", from = "Column::UserId", @@ -43,7 +75,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Users, + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -51,31 +91,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Cycles.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Users.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/cycle_issues.rs b/crates/entities/src/cycle_issues.rs index d0b05db..e05e3c3 100644 --- a/crates/entities/src/cycle_issues.rs +++ b/crates/entities/src/cycle_issues.rs @@ -12,6 +12,7 @@ pub struct Model { pub id: Uuid, pub created_by_id: Option, pub cycle_id: Uuid, + #[sea_orm(unique)] pub issue_id: Uuid, pub project_id: Uuid, pub updated_by_id: Option, @@ -27,7 +28,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Cycles, + Cycles2, + #[sea_orm( + belongs_to = "super::cycles::Entity", + from = "Column::CycleId", + to = "super::cycles::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Cycles1, #[sea_orm( belongs_to = "super::issues::Entity", from = "Column::IssueId", @@ -35,7 +44,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -43,7 +60,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -51,31 +92,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Cycles.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/cycles.rs b/crates/entities/src/cycles.rs index 63acceb..b919185 100644 --- a/crates/entities/src/cycles.rs +++ b/crates/entities/src/cycles.rs @@ -30,10 +30,6 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { - #[sea_orm(has_many = "super::cycle_favorites::Entity")] - CycleFavorites, - #[sea_orm(has_many = "super::cycle_issues::Entity")] - CycleIssues, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -41,7 +37,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::OwnedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -49,31 +77,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::CycleFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::CycleIssues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/django_celery_beat_clockedschedule.rs b/crates/entities/src/django_celery_beat_clockedschedule.rs index f2c9c0a..931e3d7 100644 --- a/crates/entities/src/django_celery_beat_clockedschedule.rs +++ b/crates/entities/src/django_celery_beat_clockedschedule.rs @@ -12,6 +12,15 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm(has_many = "super::django_celery_beat_periodictask::Entity")] + DjangoCeleryBeatPeriodictask, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::DjangoCeleryBeatPeriodictask.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/django_celery_beat_crontabschedule.rs b/crates/entities/src/django_celery_beat_crontabschedule.rs index 4fd410c..24c5129 100644 --- a/crates/entities/src/django_celery_beat_crontabschedule.rs +++ b/crates/entities/src/django_celery_beat_crontabschedule.rs @@ -17,6 +17,15 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm(has_many = "super::django_celery_beat_periodictask::Entity")] + DjangoCeleryBeatPeriodictask, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::DjangoCeleryBeatPeriodictask.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/django_celery_beat_intervalschedule.rs b/crates/entities/src/django_celery_beat_intervalschedule.rs index 180be62..0b58621 100644 --- a/crates/entities/src/django_celery_beat_intervalschedule.rs +++ b/crates/entities/src/django_celery_beat_intervalschedule.rs @@ -13,6 +13,15 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm(has_many = "super::django_celery_beat_periodictask::Entity")] + DjangoCeleryBeatPeriodictask, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::DjangoCeleryBeatPeriodictask.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/django_celery_beat_periodictask.rs b/crates/entities/src/django_celery_beat_periodictask.rs index cebc976..cf323fa 100644 --- a/crates/entities/src/django_celery_beat_periodictask.rs +++ b/crates/entities/src/django_celery_beat_periodictask.rs @@ -37,6 +37,63 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::django_celery_beat_clockedschedule::Entity", + from = "Column::ClockedId", + to = "super::django_celery_beat_clockedschedule::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + DjangoCeleryBeatClockedschedule, + #[sea_orm( + belongs_to = "super::django_celery_beat_crontabschedule::Entity", + from = "Column::CrontabId", + to = "super::django_celery_beat_crontabschedule::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + DjangoCeleryBeatCrontabschedule, + #[sea_orm( + belongs_to = "super::django_celery_beat_intervalschedule::Entity", + from = "Column::IntervalId", + to = "super::django_celery_beat_intervalschedule::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + DjangoCeleryBeatIntervalschedule, + #[sea_orm( + belongs_to = "super::django_celery_beat_solarschedule::Entity", + from = "Column::SolarId", + to = "super::django_celery_beat_solarschedule::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + DjangoCeleryBeatSolarschedule, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::DjangoCeleryBeatClockedschedule.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::DjangoCeleryBeatCrontabschedule.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::DjangoCeleryBeatIntervalschedule.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::DjangoCeleryBeatSolarschedule.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/django_celery_beat_solarschedule.rs b/crates/entities/src/django_celery_beat_solarschedule.rs index fbea228..7a5ab5e 100644 --- a/crates/entities/src/django_celery_beat_solarschedule.rs +++ b/crates/entities/src/django_celery_beat_solarschedule.rs @@ -16,6 +16,15 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm(has_many = "super::django_celery_beat_periodictask::Entity")] + DjangoCeleryBeatPeriodictask, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::DjangoCeleryBeatPeriodictask.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/django_content_type.rs b/crates/entities/src/django_content_type.rs index ce33acf..91f4f53 100644 --- a/crates/entities/src/django_content_type.rs +++ b/crates/entities/src/django_content_type.rs @@ -13,6 +13,15 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm(has_many = "super::auth_permission::Entity")] + AuthPermission, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::AuthPermission.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/django_migrations.rs b/crates/entities/src/django_migrations.rs deleted file mode 100644 index 87b5658..0000000 --- a/crates/entities/src/django_migrations.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11 - -use sea_orm::entity::prelude::*; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] -#[sea_orm(table_name = "django_migrations")] -pub struct Model { - #[sea_orm(primary_key)] - pub id: i64, - pub app: String, - pub name: String, - pub applied: DateTimeWithTimeZone, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/estimate_points.rs b/crates/entities/src/estimate_points.rs index 5c7f126..ef9db1b 100644 --- a/crates/entities/src/estimate_points.rs +++ b/crates/entities/src/estimate_points.rs @@ -30,7 +30,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Estimates, + Estimates2, + #[sea_orm( + belongs_to = "super::estimates::Entity", + from = "Column::EstimateId", + to = "super::estimates::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Estimates1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -38,7 +46,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -46,25 +78,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Estimates.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/estimates.rs b/crates/entities/src/estimates.rs index 6005c63..920de13 100644 --- a/crates/entities/src/estimates.rs +++ b/crates/entities/src/estimates.rs @@ -21,8 +21,6 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { - #[sea_orm(has_many = "super::estimate_points::Entity")] - EstimatePoints, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -30,7 +28,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -38,25 +60,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::EstimatePoints.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/exporters.rs b/crates/entities/src/exporters.rs index 4b2a45e..6deed26 100644 --- a/crates/entities/src/exporters.rs +++ b/crates/entities/src/exporters.rs @@ -18,6 +18,7 @@ pub struct Model { #[sea_orm(column_type = "Text")] pub key: String, pub url: Option, + #[sea_orm(unique)] pub token: String, pub created_by_id: Option, pub initiated_by_id: Uuid, @@ -27,6 +28,30 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::InitiatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -34,13 +59,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/file_assets.rs b/crates/entities/src/file_assets.rs index aaab90b..3d08fdf 100644 --- a/crates/entities/src/file_assets.rs +++ b/crates/entities/src/file_assets.rs @@ -20,6 +20,37 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::Workspaces.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/github_comment_syncs.rs b/crates/entities/src/github_comment_syncs.rs index 8bf8c1a..b36d81a 100644 --- a/crates/entities/src/github_comment_syncs.rs +++ b/crates/entities/src/github_comment_syncs.rs @@ -21,6 +21,22 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::github_issue_syncs::Entity", + from = "Column::IssueSyncId", + to = "super::github_issue_syncs::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + GithubIssueSyncs, + #[sea_orm( + belongs_to = "super::issue_comments::Entity", + from = "Column::CommentId", + to = "super::issue_comments::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + IssueComments, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -28,7 +44,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -36,18 +76,26 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() + Relation::GithubIssueSyncs.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::IssueComments.def() } } diff --git a/crates/entities/src/github_issue_syncs.rs b/crates/entities/src/github_issue_syncs.rs index 046c72c..19731f2 100644 --- a/crates/entities/src/github_issue_syncs.rs +++ b/crates/entities/src/github_issue_syncs.rs @@ -23,6 +23,16 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm(has_many = "super::github_comment_syncs::Entity")] + GithubCommentSyncs, + #[sea_orm( + belongs_to = "super::github_repository_syncs::Entity", + from = "Column::RepositorySyncId", + to = "super::github_repository_syncs::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + GithubRepositorySyncs, #[sea_orm( belongs_to = "super::issues::Entity", from = "Column::IssueId", @@ -30,7 +40,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -38,7 +56,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -46,24 +88,26 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Issues.def() + Relation::GithubCommentSyncs.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::GithubRepositorySyncs.def() } } diff --git a/crates/entities/src/github_repositories.rs b/crates/entities/src/github_repositories.rs index 7aab215..5eda707 100644 --- a/crates/entities/src/github_repositories.rs +++ b/crates/entities/src/github_repositories.rs @@ -24,6 +24,8 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm(has_one = "super::github_repository_syncs::Entity")] + GithubRepositorySyncs, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -31,7 +33,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -39,18 +65,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::GithubRepositorySyncs.def() } } diff --git a/crates/entities/src/github_repository_syncs.rs b/crates/entities/src/github_repository_syncs.rs index 5d265df..a29ee63 100644 --- a/crates/entities/src/github_repository_syncs.rs +++ b/crates/entities/src/github_repository_syncs.rs @@ -16,6 +16,7 @@ pub struct Model { pub created_by_id: Option, pub label_id: Option, pub project_id: Uuid, + #[sea_orm(unique)] pub repository_id: Uuid, pub updated_by_id: Option, pub workspace_id: Uuid, @@ -24,6 +25,24 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm(has_many = "super::github_issue_syncs::Entity")] + GithubIssueSyncs, + #[sea_orm( + belongs_to = "super::github_repositories::Entity", + from = "Column::RepositoryId", + to = "super::github_repositories::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + GithubRepositories, + #[sea_orm( + belongs_to = "super::labels::Entity", + from = "Column::LabelId", + to = "super::labels::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Labels, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -31,7 +50,47 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ActorId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, + #[sea_orm( + belongs_to = "super::workspace_integrations::Entity", + from = "Column::WorkspaceIntegrationId", + to = "super::workspace_integrations::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + WorkspaceIntegrations, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -39,18 +98,38 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() + Relation::GithubIssueSyncs.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::GithubRepositories.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::Labels.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::WorkspaceIntegrations.def() } } diff --git a/crates/entities/src/global_views.rs b/crates/entities/src/global_views.rs index 95ca392..3c081b8 100644 --- a/crates/entities/src/global_views.rs +++ b/crates/entities/src/global_views.rs @@ -27,6 +27,22 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -34,13 +50,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/importers.rs b/crates/entities/src/importers.rs index cef6520..4d4c7d9 100644 --- a/crates/entities/src/importers.rs +++ b/crates/entities/src/importers.rs @@ -30,6 +30,14 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::api_tokens::Entity", + from = "Column::TokenId", + to = "super::api_tokens::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + ApiTokens, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -37,7 +45,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::InitiatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -45,18 +85,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::ApiTokens.def() } } diff --git a/crates/entities/src/inbox_issues.rs b/crates/entities/src/inbox_issues.rs index 9011678..e35f31b 100644 --- a/crates/entities/src/inbox_issues.rs +++ b/crates/entities/src/inbox_issues.rs @@ -27,6 +27,22 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::inboxes::Entity", + from = "Column::InboxId", + to = "super::inboxes::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Inboxes, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::DuplicateToId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues3, #[sea_orm( belongs_to = "super::issues::Entity", from = "Column::IssueId", @@ -34,7 +50,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -42,7 +66,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -50,24 +98,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Inboxes.def() } } diff --git a/crates/entities/src/inboxes.rs b/crates/entities/src/inboxes.rs index afa0e9c..29ca170 100644 --- a/crates/entities/src/inboxes.rs +++ b/crates/entities/src/inboxes.rs @@ -24,6 +24,10 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm(has_many = "super::inbox_issues::Entity")] + InboxIssues, + #[sea_orm(has_many = "super::project_deploy_boards::Entity")] + ProjectDeployBoards, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -31,7 +35,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -39,18 +67,26 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() + Relation::InboxIssues.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::ProjectDeployBoards.def() } } diff --git a/crates/entities/src/instance_admins.rs b/crates/entities/src/instance_admins.rs index a8e1e98..1fa6608 100644 --- a/crates/entities/src/instance_admins.rs +++ b/crates/entities/src/instance_admins.rs @@ -21,6 +21,45 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::instances::Entity", + from = "Column::InstanceId", + to = "super::instances::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Instances, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::Instances.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/instance_configurations.rs b/crates/entities/src/instance_configurations.rs index b9bb151..3c19b93 100644 --- a/crates/entities/src/instance_configurations.rs +++ b/crates/entities/src/instance_configurations.rs @@ -10,6 +10,7 @@ pub struct Model { pub updated_at: DateTimeWithTimeZone, #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, + #[sea_orm(unique)] pub key: String, #[sea_orm(column_type = "Text", nullable)] pub value: Option, @@ -21,6 +22,23 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/instances.rs b/crates/entities/src/instances.rs index 78ca5c1..b3b84ab 100644 --- a/crates/entities/src/instances.rs +++ b/crates/entities/src/instances.rs @@ -13,6 +13,7 @@ pub struct Model { pub instance_name: String, #[sea_orm(column_type = "Text", nullable)] pub whitelist_emails: Option, + #[sea_orm(unique)] pub instance_id: String, pub license_key: Option, pub api_key: String, @@ -30,6 +31,31 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm(has_many = "super::instance_admins::Entity")] + InstanceAdmins, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::InstanceAdmins.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/integrations.rs b/crates/entities/src/integrations.rs index df1b73f..a493823 100644 --- a/crates/entities/src/integrations.rs +++ b/crates/entities/src/integrations.rs @@ -11,6 +11,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, pub title: String, + #[sea_orm(unique)] pub provider: String, pub network: i32, #[sea_orm(column_type = "JsonBinary")] @@ -31,6 +32,31 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, + #[sea_orm(has_many = "super::workspace_integrations::Entity")] + WorkspaceIntegrations, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::WorkspaceIntegrations.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_activities.rs b/crates/entities/src/issue_activities.rs index 4704c63..dc6ff77 100644 --- a/crates/entities/src/issue_activities.rs +++ b/crates/entities/src/issue_activities.rs @@ -34,6 +34,22 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::issue_comments::Entity", + from = "Column::IssueCommentId", + to = "super::issue_comments::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + IssueComments, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -41,7 +57,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ActorId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -49,18 +97,26 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() + Relation::IssueComments.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Issues.def() } } diff --git a/crates/entities/src/issue_assignees.rs b/crates/entities/src/issue_assignees.rs index ce32b13..fe195e8 100644 --- a/crates/entities/src/issue_assignees.rs +++ b/crates/entities/src/issue_assignees.rs @@ -27,7 +27,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -35,7 +43,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::AssigneeId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,25 +83,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_attachments.rs b/crates/entities/src/issue_attachments.rs index e2dc7ed..031fe19 100644 --- a/crates/entities/src/issue_attachments.rs +++ b/crates/entities/src/issue_attachments.rs @@ -29,7 +29,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -37,7 +45,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -45,25 +77,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_blockers.rs b/crates/entities/src/issue_blockers.rs index 5e26298..572a392 100644 --- a/crates/entities/src/issue_blockers.rs +++ b/crates/entities/src/issue_blockers.rs @@ -20,6 +20,22 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::BlockId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::BlockedById", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -27,7 +43,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -35,19 +75,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_comments.rs b/crates/entities/src/issue_comments.rs index 520f251..60e690e 100644 --- a/crates/entities/src/issue_comments.rs +++ b/crates/entities/src/issue_comments.rs @@ -30,8 +30,10 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { - #[sea_orm(has_many = "super::comment_reactions::Entity")] - CommentReactions, + #[sea_orm(has_many = "super::github_comment_syncs::Entity")] + GithubCommentSyncs, + #[sea_orm(has_many = "super::issue_activities::Entity")] + IssueActivities, #[sea_orm( belongs_to = "super::issues::Entity", from = "Column::IssueId", @@ -39,7 +41,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -47,7 +57,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ActorId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -55,30 +97,26 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::CommentReactions.def() + Relation::GithubCommentSyncs.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::IssueActivities.def() } } diff --git a/crates/entities/src/issue_labels.rs b/crates/entities/src/issue_labels.rs index ef9e911..96e4373 100644 --- a/crates/entities/src/issue_labels.rs +++ b/crates/entities/src/issue_labels.rs @@ -27,7 +27,23 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, + #[sea_orm( + belongs_to = "super::labels::Entity", + from = "Column::LabelId", + to = "super::labels::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Labels, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -35,7 +51,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,24 +83,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Labels.def() } } diff --git a/crates/entities/src/issue_links.rs b/crates/entities/src/issue_links.rs index 1fd2df8..3b317f4 100644 --- a/crates/entities/src/issue_links.rs +++ b/crates/entities/src/issue_links.rs @@ -30,7 +30,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -38,7 +46,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -46,25 +78,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_mentions.rs b/crates/entities/src/issue_mentions.rs index 38c5d4f..576fe60 100644 --- a/crates/entities/src/issue_mentions.rs +++ b/crates/entities/src/issue_mentions.rs @@ -27,7 +27,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -35,7 +43,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::MentionId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,25 +83,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_properties.rs b/crates/entities/src/issue_properties.rs index 19e0a9b..399b4e1 100644 --- a/crates/entities/src/issue_properties.rs +++ b/crates/entities/src/issue_properties.rs @@ -28,7 +28,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -36,19 +68,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_reactions.rs b/crates/entities/src/issue_reactions.rs index 1b7f354..651e0a5 100644 --- a/crates/entities/src/issue_reactions.rs +++ b/crates/entities/src/issue_reactions.rs @@ -28,7 +28,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -36,7 +44,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ActorId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -44,25 +84,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_relations.rs b/crates/entities/src/issue_relations.rs index b6ec8b2..5133fb5 100644 --- a/crates/entities/src/issue_relations.rs +++ b/crates/entities/src/issue_relations.rs @@ -28,6 +28,22 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] + Issues4, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues3, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::RelatedIssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] Issues2, #[sea_orm( belongs_to = "super::issues::Entity", @@ -44,7 +60,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -52,19 +92,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_sequences.rs b/crates/entities/src/issue_sequences.rs index 5364070..a4fe7b9 100644 --- a/crates/entities/src/issue_sequences.rs +++ b/crates/entities/src/issue_sequences.rs @@ -21,6 +21,14 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -28,7 +36,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -36,18 +68,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Issues.def() } } diff --git a/crates/entities/src/issue_subscribers.rs b/crates/entities/src/issue_subscribers.rs index 0511bb8..e6c32b4 100644 --- a/crates/entities/src/issue_subscribers.rs +++ b/crates/entities/src/issue_subscribers.rs @@ -27,7 +27,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -35,7 +43,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::SubscriberId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,25 +83,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issue_views.rs b/crates/entities/src/issue_views.rs index 3fd5972..a5261eb 100644 --- a/crates/entities/src/issue_views.rs +++ b/crates/entities/src/issue_views.rs @@ -33,7 +33,33 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, + #[sea_orm(has_many = "super::view_favorites::Entity")] + ViewFavorites, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -41,18 +67,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::ViewFavorites.def() } } diff --git a/crates/entities/src/issue_votes.rs b/crates/entities/src/issue_votes.rs index 91d2bd6..43a094a 100644 --- a/crates/entities/src/issue_votes.rs +++ b/crates/entities/src/issue_votes.rs @@ -28,7 +28,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -36,7 +44,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ActorId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -44,25 +84,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/issues.rs b/crates/entities/src/issues.rs index 96536e9..73ca9cd 100644 --- a/crates/entities/src/issues.rs +++ b/crates/entities/src/issues.rs @@ -39,32 +39,20 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { - #[sea_orm(has_many = "super::cycle_issues::Entity")] - CycleIssues, - #[sea_orm(has_many = "super::github_issue_syncs::Entity")] - GithubIssueSyncs, - #[sea_orm(has_many = "super::inbox_issues::Entity")] - InboxIssues, - #[sea_orm(has_many = "super::issue_assignees::Entity")] - IssueAssignees, - #[sea_orm(has_many = "super::issue_attachments::Entity")] - IssueAttachments, - #[sea_orm(has_many = "super::issue_comments::Entity")] - IssueComments, - #[sea_orm(has_many = "super::issue_labels::Entity")] - IssueLabels, - #[sea_orm(has_many = "super::issue_links::Entity")] - IssueLinks, - #[sea_orm(has_many = "super::issue_mentions::Entity")] - IssueMentions, - #[sea_orm(has_many = "super::issue_reactions::Entity")] - IssueReactions, - #[sea_orm(has_many = "super::issue_subscribers::Entity")] - IssueSubscribers, - #[sea_orm(has_many = "super::issue_votes::Entity")] - IssueVotes, - #[sea_orm(has_many = "super::module_issues::Entity")] - ModuleIssues, + #[sea_orm(has_many = "super::issue_activities::Entity")] + IssueActivities, + #[sea_orm(has_many = "super::issue_sequences::Entity")] + IssueSequences, + #[sea_orm( + belongs_to = "Entity", + from = "Column::ParentId", + to = "Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + SelfRef, + #[sea_orm(has_many = "super::page_blocks::Entity")] + PageBlocks, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -72,7 +60,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::states::Entity", + from = "Column::StateId", + to = "super::states::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + States, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -80,96 +100,38 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::CycleIssues.def() + Relation::IssueActivities.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::GithubIssueSyncs.def() + Relation::IssueSequences.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::InboxIssues.def() + Relation::PageBlocks.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::IssueAssignees.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueAttachments.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueComments.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueLabels.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueLinks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueMentions.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueReactions.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueSubscribers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueVotes.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleIssues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::States.def() } } diff --git a/crates/entities/src/labels.rs b/crates/entities/src/labels.rs index 70f285b..9892abb 100644 --- a/crates/entities/src/labels.rs +++ b/crates/entities/src/labels.rs @@ -27,6 +27,20 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm(has_many = "super::github_repository_syncs::Entity")] + GithubRepositorySyncs, + #[sea_orm(has_many = "super::issue_labels::Entity")] + IssueLabels, + #[sea_orm( + belongs_to = "Entity", + from = "Column::ParentId", + to = "Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + SelfRef, + #[sea_orm(has_many = "super::page_labels::Entity")] + PageLabels, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -34,7 +48,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -42,18 +80,32 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() + Relation::GithubRepositorySyncs.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::IssueLabels.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::PageLabels.def() } } diff --git a/crates/entities/src/lib.rs b/crates/entities/src/lib.rs index 1906609..da172eb 100644 --- a/crates/entities/src/lib.rs +++ b/crates/entities/src/lib.rs @@ -20,7 +20,6 @@ pub mod django_celery_beat_periodictask; pub mod django_celery_beat_periodictasks; pub mod django_celery_beat_solarschedule; pub mod django_content_type; -pub mod django_migrations; pub mod django_session; pub mod estimate_points; pub mod estimates; diff --git a/crates/entities/src/module_favorites.rs b/crates/entities/src/module_favorites.rs index 9c09df8..3c4b3d0 100644 --- a/crates/entities/src/module_favorites.rs +++ b/crates/entities/src/module_favorites.rs @@ -27,7 +27,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Modules, + Modules2, + #[sea_orm( + belongs_to = "super::modules::Entity", + from = "Column::ModuleId", + to = "super::modules::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Modules1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -35,7 +43,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,25 +83,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Modules.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/module_issues.rs b/crates/entities/src/module_issues.rs index 1b2080b..1b2aa8b 100644 --- a/crates/entities/src/module_issues.rs +++ b/crates/entities/src/module_issues.rs @@ -11,6 +11,7 @@ pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, pub created_by_id: Option, + #[sea_orm(unique)] pub issue_id: Uuid, pub module_id: Uuid, pub project_id: Uuid, @@ -27,7 +28,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Issues, + Issues2, + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues1, #[sea_orm( belongs_to = "super::modules::Entity", from = "Column::ModuleId", @@ -35,7 +44,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Modules, + Modules2, + #[sea_orm( + belongs_to = "super::modules::Entity", + from = "Column::ModuleId", + to = "super::modules::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Modules1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -43,7 +60,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -51,31 +92,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Modules.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/module_links.rs b/crates/entities/src/module_links.rs index 6e3563a..e4391e8 100644 --- a/crates/entities/src/module_links.rs +++ b/crates/entities/src/module_links.rs @@ -30,7 +30,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Modules, + Modules2, + #[sea_orm( + belongs_to = "super::modules::Entity", + from = "Column::ModuleId", + to = "super::modules::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Modules1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -38,7 +46,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -46,25 +78,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Modules.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/module_members.rs b/crates/entities/src/module_members.rs index 4a8a8d5..791969d 100644 --- a/crates/entities/src/module_members.rs +++ b/crates/entities/src/module_members.rs @@ -27,7 +27,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Modules, + Modules2, + #[sea_orm( + belongs_to = "super::modules::Entity", + from = "Column::ModuleId", + to = "super::modules::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Modules1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -35,7 +43,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::MemberId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,25 +83,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Modules.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/modules.rs b/crates/entities/src/modules.rs index d58d399..e26f5d7 100644 --- a/crates/entities/src/modules.rs +++ b/crates/entities/src/modules.rs @@ -35,14 +35,6 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { - #[sea_orm(has_many = "super::module_favorites::Entity")] - ModuleFavorites, - #[sea_orm(has_many = "super::module_issues::Entity")] - ModuleIssues, - #[sea_orm(has_many = "super::module_links::Entity")] - ModuleLinks, - #[sea_orm(has_many = "super::module_members::Entity")] - ModuleMembers, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -50,7 +42,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::LeadId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -58,43 +82,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleIssues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleLinks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleMembers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/notifications.rs b/crates/entities/src/notifications.rs index e6a5f9c..f3974b3 100644 --- a/crates/entities/src/notifications.rs +++ b/crates/entities/src/notifications.rs @@ -36,6 +36,46 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users4, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ReceiverId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::TriggeredById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,12 +83,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Projects.def() } } diff --git a/crates/entities/src/page_blocks.rs b/crates/entities/src/page_blocks.rs index 61552dc..17446fc 100644 --- a/crates/entities/src/page_blocks.rs +++ b/crates/entities/src/page_blocks.rs @@ -31,6 +31,14 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::issues::Entity", + from = "Column::IssueId", + to = "super::issues::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Issues, #[sea_orm( belongs_to = "super::pages::Entity", from = "Column::PageId", @@ -38,7 +46,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Pages, + Pages2, + #[sea_orm( + belongs_to = "super::pages::Entity", + from = "Column::PageId", + to = "super::pages::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Pages1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -46,7 +62,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -54,24 +94,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Pages.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Issues.def() } } diff --git a/crates/entities/src/page_favorites.rs b/crates/entities/src/page_favorites.rs index f78b85b..e28f890 100644 --- a/crates/entities/src/page_favorites.rs +++ b/crates/entities/src/page_favorites.rs @@ -27,7 +27,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Pages, + Pages2, + #[sea_orm( + belongs_to = "super::pages::Entity", + from = "Column::PageId", + to = "super::pages::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Pages1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -35,7 +43,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,25 +83,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Pages.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/page_labels.rs b/crates/entities/src/page_labels.rs index 00dd635..7239b0b 100644 --- a/crates/entities/src/page_labels.rs +++ b/crates/entities/src/page_labels.rs @@ -20,6 +20,14 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::labels::Entity", + from = "Column::LabelId", + to = "super::labels::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Labels, #[sea_orm( belongs_to = "super::pages::Entity", from = "Column::PageId", @@ -27,7 +35,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Pages, + Pages2, + #[sea_orm( + belongs_to = "super::pages::Entity", + from = "Column::PageId", + to = "super::pages::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Pages1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -35,7 +51,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,24 +83,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Pages.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Labels.def() } } diff --git a/crates/entities/src/page_logs.rs b/crates/entities/src/page_logs.rs index 63c18c8..5fd351a 100644 --- a/crates/entities/src/page_logs.rs +++ b/crates/entities/src/page_logs.rs @@ -29,7 +29,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Pages, + Pages2, + #[sea_orm( + belongs_to = "super::pages::Entity", + from = "Column::PageId", + to = "super::pages::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Pages1, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -37,7 +45,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -45,25 +77,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Pages.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/pages.rs b/crates/entities/src/pages.rs index 0cf489d..0ff760d 100644 --- a/crates/entities/src/pages.rs +++ b/crates/entities/src/pages.rs @@ -31,14 +31,14 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { - #[sea_orm(has_many = "super::page_blocks::Entity")] - PageBlocks, - #[sea_orm(has_many = "super::page_favorites::Entity")] - PageFavorites, - #[sea_orm(has_many = "super::page_labels::Entity")] - PageLabels, - #[sea_orm(has_many = "super::page_logs::Entity")] - PageLogs, + #[sea_orm( + belongs_to = "Entity", + from = "Column::ParentId", + to = "Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + SelfRef, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -46,7 +46,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::OwnedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -54,43 +86,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageBlocks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageLabels.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageLogs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/prelude.rs b/crates/entities/src/prelude.rs index 4dbddd4..b323b83 100644 --- a/crates/entities/src/prelude.rs +++ b/crates/entities/src/prelude.rs @@ -18,7 +18,6 @@ pub use super::django_celery_beat_periodictask::Entity as DjangoCeleryBeatPeriod pub use super::django_celery_beat_periodictasks::Entity as DjangoCeleryBeatPeriodictasks; pub use super::django_celery_beat_solarschedule::Entity as DjangoCeleryBeatSolarschedule; pub use super::django_content_type::Entity as DjangoContentType; -pub use super::django_migrations::Entity as DjangoMigrations; pub use super::django_session::Entity as DjangoSession; pub use super::estimate_points::Entity as EstimatePoints; pub use super::estimates::Entity as Estimates; diff --git a/crates/entities/src/project_deploy_boards.rs b/crates/entities/src/project_deploy_boards.rs index 7637b02..954e517 100644 --- a/crates/entities/src/project_deploy_boards.rs +++ b/crates/entities/src/project_deploy_boards.rs @@ -10,6 +10,7 @@ pub struct Model { pub updated_at: DateTimeWithTimeZone, #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, + #[sea_orm(unique)] pub anchor: String, pub comments: bool, pub reactions: bool, @@ -25,6 +26,14 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::inboxes::Entity", + from = "Column::InboxId", + to = "super::inboxes::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Inboxes, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -32,7 +41,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -40,18 +73,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Inboxes.def() } } diff --git a/crates/entities/src/project_favorites.rs b/crates/entities/src/project_favorites.rs index 15751da..bd8bdea 100644 --- a/crates/entities/src/project_favorites.rs +++ b/crates/entities/src/project_favorites.rs @@ -26,7 +26,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -34,19 +66,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/project_identifiers.rs b/crates/entities/src/project_identifiers.rs index 58ddc02..0538aaa 100644 --- a/crates/entities/src/project_identifiers.rs +++ b/crates/entities/src/project_identifiers.rs @@ -12,6 +12,7 @@ pub struct Model { pub updated_at: DateTimeWithTimeZone, pub name: String, pub created_by_id: Option, + #[sea_orm(unique)] pub project_id: Uuid, pub updated_by_id: Option, pub workspace_id: Option, @@ -26,12 +27,44 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() + Relation::Workspaces.def() } } diff --git a/crates/entities/src/project_member_invites.rs b/crates/entities/src/project_member_invites.rs index fd0adc3..36e2e02 100644 --- a/crates/entities/src/project_member_invites.rs +++ b/crates/entities/src/project_member_invites.rs @@ -34,7 +34,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -42,19 +66,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/project_members.rs b/crates/entities/src/project_members.rs index 9868369..0ec15f5 100644 --- a/crates/entities/src/project_members.rs +++ b/crates/entities/src/project_members.rs @@ -40,7 +40,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::MemberId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -48,19 +80,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/project_public_members.rs b/crates/entities/src/project_public_members.rs index a9f56ee..f4c6e0b 100644 --- a/crates/entities/src/project_public_members.rs +++ b/crates/entities/src/project_public_members.rs @@ -26,7 +26,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::MemberId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -34,19 +66,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/projects.rs b/crates/entities/src/projects.rs index d0fcd17..712078a 100644 --- a/crates/entities/src/projects.rs +++ b/crates/entities/src/projects.rs @@ -41,104 +41,56 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { - #[sea_orm(has_many = "super::comment_reactions::Entity")] - CommentReactions, - #[sea_orm(has_many = "super::cycle_favorites::Entity")] - CycleFavorites, - #[sea_orm(has_many = "super::cycle_issues::Entity")] - CycleIssues, - #[sea_orm(has_many = "super::cycles::Entity")] - Cycles, - #[sea_orm(has_many = "super::estimate_points::Entity")] - EstimatePoints, - #[sea_orm(has_many = "super::estimates::Entity")] + #[sea_orm( + belongs_to = "super::estimates::Entity", + from = "Column::EstimateId", + to = "super::estimates::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] Estimates, - #[sea_orm(has_many = "super::github_comment_syncs::Entity")] - GithubCommentSyncs, - #[sea_orm(has_many = "super::github_issue_syncs::Entity")] - GithubIssueSyncs, - #[sea_orm(has_many = "super::github_repositories::Entity")] - GithubRepositories, - #[sea_orm(has_many = "super::github_repository_syncs::Entity")] - GithubRepositorySyncs, - #[sea_orm(has_many = "super::importers::Entity")] - Importers, - #[sea_orm(has_many = "super::inbox_issues::Entity")] - InboxIssues, - #[sea_orm(has_many = "super::inboxes::Entity")] - Inboxes, - #[sea_orm(has_many = "super::issue_activities::Entity")] - IssueActivities, - #[sea_orm(has_many = "super::issue_assignees::Entity")] - IssueAssignees, - #[sea_orm(has_many = "super::issue_attachments::Entity")] - IssueAttachments, - #[sea_orm(has_many = "super::issue_blockers::Entity")] - IssueBlockers, - #[sea_orm(has_many = "super::issue_comments::Entity")] - IssueComments, - #[sea_orm(has_many = "super::issue_labels::Entity")] - IssueLabels, - #[sea_orm(has_many = "super::issue_links::Entity")] - IssueLinks, - #[sea_orm(has_many = "super::issue_mentions::Entity")] - IssueMentions, - #[sea_orm(has_many = "super::issue_properties::Entity")] - IssueProperties, - #[sea_orm(has_many = "super::issue_reactions::Entity")] - IssueReactions, - #[sea_orm(has_many = "super::issue_relations::Entity")] - IssueRelations, - #[sea_orm(has_many = "super::issue_sequences::Entity")] - IssueSequences, - #[sea_orm(has_many = "super::issue_subscribers::Entity")] - IssueSubscribers, - #[sea_orm(has_many = "super::issue_views::Entity")] - IssueViews, - #[sea_orm(has_many = "super::issue_votes::Entity")] - IssueVotes, - #[sea_orm(has_many = "super::issues::Entity")] - Issues, - #[sea_orm(has_many = "super::labels::Entity")] - Labels, - #[sea_orm(has_many = "super::module_favorites::Entity")] - ModuleFavorites, - #[sea_orm(has_many = "super::module_issues::Entity")] - ModuleIssues, - #[sea_orm(has_many = "super::module_links::Entity")] - ModuleLinks, - #[sea_orm(has_many = "super::module_members::Entity")] - ModuleMembers, - #[sea_orm(has_many = "super::modules::Entity")] - Modules, - #[sea_orm(has_many = "super::page_blocks::Entity")] - PageBlocks, - #[sea_orm(has_many = "super::page_favorites::Entity")] - PageFavorites, - #[sea_orm(has_many = "super::page_labels::Entity")] - PageLabels, - #[sea_orm(has_many = "super::page_logs::Entity")] - PageLogs, - #[sea_orm(has_many = "super::pages::Entity")] - Pages, - #[sea_orm(has_many = "super::project_deploy_boards::Entity")] - ProjectDeployBoards, - #[sea_orm(has_many = "super::project_favorites::Entity")] - ProjectFavorites, - #[sea_orm(has_many = "super::project_identifiers::Entity")] - ProjectIdentifiers, - #[sea_orm(has_many = "super::project_member_invites::Entity")] - ProjectMemberInvites, - #[sea_orm(has_many = "super::project_members::Entity")] - ProjectMembers, - #[sea_orm(has_many = "super::project_public_members::Entity")] - ProjectPublicMembers, - #[sea_orm(has_many = "super::slack_project_syncs::Entity")] - SlackProjectSyncs, - #[sea_orm(has_many = "super::states::Entity")] + #[sea_orm(has_many = "super::notifications::Entity")] + Notifications, + #[sea_orm( + belongs_to = "super::states::Entity", + from = "Column::DefaultStateId", + to = "super::states::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] States, - #[sea_orm(has_many = "super::view_favorites::Entity")] - ViewFavorites, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users4, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::DefaultAssigneeId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ProjectLeadId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -146,37 +98,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::CommentReactions.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::CycleFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::CycleIssues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Cycles.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::EstimatePoints.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl Related for Entity { @@ -185,249 +115,9 @@ impl Related for Entity { } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::GithubCommentSyncs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GithubIssueSyncs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GithubRepositories.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GithubRepositorySyncs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Importers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::InboxIssues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Inboxes.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueActivities.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueAssignees.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueAttachments.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueBlockers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueComments.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueLabels.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueLinks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueMentions.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueProperties.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueReactions.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueRelations.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueSequences.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueSubscribers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueViews.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueVotes.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Labels.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleIssues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleLinks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleMembers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Modules.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageBlocks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageLabels.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageLogs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Pages.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectDeployBoards.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectIdentifiers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectMemberInvites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectMembers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectPublicMembers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::SlackProjectSyncs.def() + Relation::Notifications.def() } } @@ -437,16 +127,4 @@ impl Related for Entity { } } -impl Related for Entity { - fn to() -> RelationDef { - Relation::ViewFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } -} - impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/slack_project_syncs.rs b/crates/entities/src/slack_project_syncs.rs index 87ddb5b..d72f469 100644 --- a/crates/entities/src/slack_project_syncs.rs +++ b/crates/entities/src/slack_project_syncs.rs @@ -35,7 +35,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, + #[sea_orm( + belongs_to = "super::workspace_integrations::Entity", + from = "Column::WorkspaceIntegrationId", + to = "super::workspace_integrations::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + WorkspaceIntegrations, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -43,18 +75,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::WorkspaceIntegrations.def() } } diff --git a/crates/entities/src/social_login_connections.rs b/crates/entities/src/social_login_connections.rs index 9611053..a9d27e8 100644 --- a/crates/entities/src/social_login_connections.rs +++ b/crates/entities/src/social_login_connections.rs @@ -23,6 +23,31 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/states.rs b/crates/entities/src/states.rs index ee80e0a..d805fb2 100644 --- a/crates/entities/src/states.rs +++ b/crates/entities/src/states.rs @@ -29,6 +29,8 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm(has_many = "super::issues::Entity")] + Issues, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -36,7 +38,31 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -44,18 +70,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Issues.def() } } diff --git a/crates/entities/src/team_members.rs b/crates/entities/src/team_members.rs index c940ddf..263832b 100644 --- a/crates/entities/src/team_members.rs +++ b/crates/entities/src/team_members.rs @@ -19,6 +19,38 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::teams::Entity", + from = "Column::TeamId", + to = "super::teams::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Teams, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::MemberId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -26,12 +58,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Teams.def() } } diff --git a/crates/entities/src/teams.rs b/crates/entities/src/teams.rs index 0a5f4ed..b3e7fd9 100644 --- a/crates/entities/src/teams.rs +++ b/crates/entities/src/teams.rs @@ -20,6 +20,24 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm(has_many = "super::team_members::Entity")] + TeamMembers, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -27,12 +45,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::TeamMembers.def() } } diff --git a/crates/entities/src/token_blacklist_blacklistedtoken.rs b/crates/entities/src/token_blacklist_blacklistedtoken.rs index 288b61a..1a000ce 100644 --- a/crates/entities/src/token_blacklist_blacklistedtoken.rs +++ b/crates/entities/src/token_blacklist_blacklistedtoken.rs @@ -9,10 +9,26 @@ pub struct Model { #[sea_orm(primary_key)] pub id: i64, pub blacklisted_at: DateTimeWithTimeZone, + #[sea_orm(unique)] pub token_id: i64, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::token_blacklist_outstandingtoken::Entity", + from = "Column::TokenId", + to = "super::token_blacklist_outstandingtoken::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + TokenBlacklistOutstandingtoken, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::TokenBlacklistOutstandingtoken.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/token_blacklist_outstandingtoken.rs b/crates/entities/src/token_blacklist_outstandingtoken.rs index e2d858f..555d914 100644 --- a/crates/entities/src/token_blacklist_outstandingtoken.rs +++ b/crates/entities/src/token_blacklist_outstandingtoken.rs @@ -13,10 +13,34 @@ pub struct Model { pub created_at: Option, pub expires_at: DateTimeWithTimeZone, pub user_id: Option, + #[sea_orm(unique)] pub jti: String, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm(has_one = "super::token_blacklist_blacklistedtoken::Entity")] + TokenBlacklistBlacklistedtoken, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::TokenBlacklistBlacklistedtoken.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::Users.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/users.rs b/crates/entities/src/users.rs index adac098..9b3b191 100644 --- a/crates/entities/src/users.rs +++ b/crates/entities/src/users.rs @@ -10,8 +10,10 @@ pub struct Model { pub last_login: Option, #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, + #[sea_orm(unique)] pub username: String, pub mobile_number: Option, + #[sea_orm(unique)] pub email: Option, pub first_name: String, pub last_name: String, @@ -62,37 +64,29 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { - #[sea_orm(has_many = "super::api_tokens::Entity")] - ApiTokens, - #[sea_orm(has_many = "super::authtoken_token::Entity")] - AuthtokenToken, - #[sea_orm(has_many = "super::cycle_favorites::Entity")] - CycleFavorites, - #[sea_orm(has_many = "super::workspaces::Entity")] - Workspaces, + #[sea_orm(has_many = "super::token_blacklist_outstandingtoken::Entity")] + TokenBlacklistOutstandingtoken, + #[sea_orm(has_many = "super::users_groups::Entity")] + UsersGroups, + #[sea_orm(has_many = "super::users_user_permissions::Entity")] + UsersUserPermissions, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::ApiTokens.def() + Relation::TokenBlacklistOutstandingtoken.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::AuthtokenToken.def() + Relation::UsersGroups.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::CycleFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::UsersUserPermissions.def() } } diff --git a/crates/entities/src/users_groups.rs b/crates/entities/src/users_groups.rs index 4ffa301..f1a175d 100644 --- a/crates/entities/src/users_groups.rs +++ b/crates/entities/src/users_groups.rs @@ -13,6 +13,35 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::auth_group::Entity", + from = "Column::GroupId", + to = "super::auth_group::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + AuthGroup, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::AuthGroup.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::Users.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/users_user_permissions.rs b/crates/entities/src/users_user_permissions.rs index 9445fed..6b47085 100644 --- a/crates/entities/src/users_user_permissions.rs +++ b/crates/entities/src/users_user_permissions.rs @@ -13,6 +13,35 @@ pub struct Model { } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} +pub enum Relation { + #[sea_orm( + belongs_to = "super::auth_permission::Entity", + from = "Column::PermissionId", + to = "super::auth_permission::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + AuthPermission, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users, +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::AuthPermission.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::Users.def() + } +} impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/view_favorites.rs b/crates/entities/src/view_favorites.rs index e4f96e1..7c42868 100644 --- a/crates/entities/src/view_favorites.rs +++ b/crates/entities/src/view_favorites.rs @@ -20,6 +20,14 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::issue_views::Entity", + from = "Column::ViewId", + to = "super::issue_views::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + IssueViews, #[sea_orm( belongs_to = "super::projects::Entity", from = "Column::ProjectId", @@ -27,7 +35,39 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Projects, + Projects2, + #[sea_orm( + belongs_to = "super::projects::Entity", + from = "Column::ProjectId", + to = "super::projects::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Projects1, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UserId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -35,18 +75,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::IssueViews.def() } } diff --git a/crates/entities/src/webhook_logs.rs b/crates/entities/src/webhook_logs.rs index e73d3d1..3ad81cd 100644 --- a/crates/entities/src/webhook_logs.rs +++ b/crates/entities/src/webhook_logs.rs @@ -31,6 +31,30 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, + #[sea_orm( + belongs_to = "super::webhooks::Entity", + from = "Column::WebhookId", + to = "super::webhooks::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Webhooks, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -38,12 +62,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::Webhooks.def() } } diff --git a/crates/entities/src/webhooks.rs b/crates/entities/src/webhooks.rs index 09f2b27..944bf35 100644 --- a/crates/entities/src/webhooks.rs +++ b/crates/entities/src/webhooks.rs @@ -25,6 +25,24 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, + #[sea_orm(has_many = "super::webhook_logs::Entity")] + WebhookLogs, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -32,12 +50,20 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::WebhookLogs.def() } } diff --git a/crates/entities/src/workspace_integrations.rs b/crates/entities/src/workspace_integrations.rs index 4232d12..f56332d 100644 --- a/crates/entities/src/workspace_integrations.rs +++ b/crates/entities/src/workspace_integrations.rs @@ -24,6 +24,50 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::api_tokens::Entity", + from = "Column::ApiTokenId", + to = "super::api_tokens::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + ApiTokens, + #[sea_orm(has_many = "super::github_repository_syncs::Entity")] + GithubRepositorySyncs, + #[sea_orm( + belongs_to = "super::integrations::Entity", + from = "Column::IntegrationId", + to = "super::integrations::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Integrations, + #[sea_orm(has_many = "super::slack_project_syncs::Entity")] + SlackProjectSyncs, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ActorId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -31,12 +75,38 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::Workspaces.def() + Relation::ApiTokens.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::GithubRepositorySyncs.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::Integrations.def() + } +} + +impl Related for Entity { + fn to() -> RelationDef { + Relation::SlackProjectSyncs.def() } } diff --git a/crates/entities/src/workspace_member_invites.rs b/crates/entities/src/workspace_member_invites.rs index bf46707..518fc7f 100644 --- a/crates/entities/src/workspace_member_invites.rs +++ b/crates/entities/src/workspace_member_invites.rs @@ -26,6 +26,22 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -33,13 +49,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/workspace_members.rs b/crates/entities/src/workspace_members.rs index cb9be26..2541cd4 100644 --- a/crates/entities/src/workspace_members.rs +++ b/crates/entities/src/workspace_members.rs @@ -30,6 +30,30 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::MemberId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -37,13 +61,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/workspace_themes.rs b/crates/entities/src/workspace_themes.rs index d38e537..41c7a6e 100644 --- a/crates/entities/src/workspace_themes.rs +++ b/crates/entities/src/workspace_themes.rs @@ -21,6 +21,30 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::ActorId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, #[sea_orm( belongs_to = "super::workspaces::Entity", from = "Column::WorkspaceId", @@ -28,13 +52,15 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Workspaces, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Workspaces.def() - } + Workspaces2, + #[sea_orm( + belongs_to = "super::workspaces::Entity", + from = "Column::WorkspaceId", + to = "super::workspaces::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Workspaces1, } impl ActiveModelBehavior for ActiveModel {} diff --git a/crates/entities/src/workspaces.rs b/crates/entities/src/workspaces.rs index 0c6e49f..f9e8696 100644 --- a/crates/entities/src/workspaces.rs +++ b/crates/entities/src/workspaces.rs @@ -12,6 +12,7 @@ pub struct Model { pub id: Uuid, pub name: String, pub logo: Option, + #[sea_orm(unique)] pub slug: String, pub created_by_id: Option, pub owner_id: Uuid, @@ -21,114 +22,18 @@ pub struct Model { #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { - #[sea_orm(has_many = "super::analytic_views::Entity")] - AnalyticViews, - #[sea_orm(has_many = "super::comment_reactions::Entity")] - CommentReactions, - #[sea_orm(has_many = "super::cycle_favorites::Entity")] - CycleFavorites, - #[sea_orm(has_many = "super::cycle_issues::Entity")] - CycleIssues, - #[sea_orm(has_many = "super::cycles::Entity")] - Cycles, - #[sea_orm(has_many = "super::estimate_points::Entity")] - EstimatePoints, - #[sea_orm(has_many = "super::estimates::Entity")] - Estimates, - #[sea_orm(has_many = "super::exporters::Entity")] - Exporters, - #[sea_orm(has_many = "super::github_comment_syncs::Entity")] - GithubCommentSyncs, - #[sea_orm(has_many = "super::github_issue_syncs::Entity")] - GithubIssueSyncs, - #[sea_orm(has_many = "super::github_repositories::Entity")] - GithubRepositories, - #[sea_orm(has_many = "super::github_repository_syncs::Entity")] - GithubRepositorySyncs, - #[sea_orm(has_many = "super::global_views::Entity")] - GlobalViews, - #[sea_orm(has_many = "super::importers::Entity")] - Importers, - #[sea_orm(has_many = "super::inbox_issues::Entity")] - InboxIssues, - #[sea_orm(has_many = "super::inboxes::Entity")] - Inboxes, - #[sea_orm(has_many = "super::issue_activities::Entity")] - IssueActivities, - #[sea_orm(has_many = "super::issue_assignees::Entity")] - IssueAssignees, - #[sea_orm(has_many = "super::issue_attachments::Entity")] - IssueAttachments, - #[sea_orm(has_many = "super::issue_blockers::Entity")] - IssueBlockers, - #[sea_orm(has_many = "super::issue_comments::Entity")] - IssueComments, - #[sea_orm(has_many = "super::issue_labels::Entity")] - IssueLabels, - #[sea_orm(has_many = "super::issue_links::Entity")] - IssueLinks, - #[sea_orm(has_many = "super::issue_mentions::Entity")] - IssueMentions, - #[sea_orm(has_many = "super::issue_properties::Entity")] - IssueProperties, - #[sea_orm(has_many = "super::issue_reactions::Entity")] - IssueReactions, - #[sea_orm(has_many = "super::issue_relations::Entity")] - IssueRelations, - #[sea_orm(has_many = "super::issue_sequences::Entity")] - IssueSequences, - #[sea_orm(has_many = "super::issue_subscribers::Entity")] - IssueSubscribers, - #[sea_orm(has_many = "super::issue_views::Entity")] - IssueViews, - #[sea_orm(has_many = "super::issue_votes::Entity")] - IssueVotes, - #[sea_orm(has_many = "super::issues::Entity")] - Issues, - #[sea_orm(has_many = "super::labels::Entity")] - Labels, - #[sea_orm(has_many = "super::module_favorites::Entity")] - ModuleFavorites, - #[sea_orm(has_many = "super::module_issues::Entity")] - ModuleIssues, - #[sea_orm(has_many = "super::module_links::Entity")] - ModuleLinks, - #[sea_orm(has_many = "super::module_members::Entity")] - ModuleMembers, - #[sea_orm(has_many = "super::modules::Entity")] - Modules, - #[sea_orm(has_many = "super::notifications::Entity")] - Notifications, - #[sea_orm(has_many = "super::page_blocks::Entity")] - PageBlocks, - #[sea_orm(has_many = "super::page_favorites::Entity")] - PageFavorites, - #[sea_orm(has_many = "super::page_labels::Entity")] - PageLabels, - #[sea_orm(has_many = "super::page_logs::Entity")] - PageLogs, - #[sea_orm(has_many = "super::pages::Entity")] - Pages, - #[sea_orm(has_many = "super::project_deploy_boards::Entity")] - ProjectDeployBoards, - #[sea_orm(has_many = "super::project_favorites::Entity")] - ProjectFavorites, - #[sea_orm(has_many = "super::project_member_invites::Entity")] - ProjectMemberInvites, - #[sea_orm(has_many = "super::project_members::Entity")] - ProjectMembers, - #[sea_orm(has_many = "super::project_public_members::Entity")] - ProjectPublicMembers, - #[sea_orm(has_many = "super::projects::Entity")] - Projects, - #[sea_orm(has_many = "super::slack_project_syncs::Entity")] - SlackProjectSyncs, - #[sea_orm(has_many = "super::states::Entity")] - States, - #[sea_orm(has_many = "super::team_members::Entity")] - TeamMembers, - #[sea_orm(has_many = "super::teams::Entity")] - Teams, + #[sea_orm(has_many = "super::file_assets::Entity")] + FileAssets, + #[sea_orm(has_many = "super::project_identifiers::Entity")] + ProjectIdentifiers, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::CreatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users4, #[sea_orm( belongs_to = "super::users::Entity", from = "Column::OwnerId", @@ -136,392 +41,34 @@ pub enum Relation { on_update = "NoAction", on_delete = "NoAction" )] - Users, - #[sea_orm(has_many = "super::view_favorites::Entity")] - ViewFavorites, - #[sea_orm(has_many = "super::webhook_logs::Entity")] - WebhookLogs, - #[sea_orm(has_many = "super::webhooks::Entity")] - Webhooks, - #[sea_orm(has_many = "super::workspace_integrations::Entity")] - WorkspaceIntegrations, - #[sea_orm(has_many = "super::workspace_member_invites::Entity")] - WorkspaceMemberInvites, - #[sea_orm(has_many = "super::workspace_members::Entity")] - WorkspaceMembers, - #[sea_orm(has_many = "super::workspace_themes::Entity")] - WorkspaceThemes, + Users3, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::UpdatedById", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users2, + #[sea_orm( + belongs_to = "super::users::Entity", + from = "Column::OwnerId", + to = "super::users::Column::Id", + on_update = "NoAction", + on_delete = "NoAction" + )] + Users1, } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::AnalyticViews.def() + Relation::FileAssets.def() } } -impl Related for Entity { +impl Related for Entity { fn to() -> RelationDef { - Relation::CommentReactions.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::CycleFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::CycleIssues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Cycles.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::EstimatePoints.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Estimates.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Exporters.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GithubCommentSyncs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GithubIssueSyncs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GithubRepositories.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GithubRepositorySyncs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GlobalViews.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Importers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::InboxIssues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Inboxes.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueActivities.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueAssignees.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueAttachments.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueBlockers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueComments.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueLabels.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueLinks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueMentions.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueProperties.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueReactions.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueRelations.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueSequences.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueSubscribers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueViews.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::IssueVotes.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Issues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Labels.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleIssues.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleLinks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModuleMembers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Modules.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Notifications.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageBlocks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageLabels.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageLogs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Pages.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectDeployBoards.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectMemberInvites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectMembers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ProjectPublicMembers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Projects.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::SlackProjectSyncs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::States.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::TeamMembers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Teams.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Users.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ViewFavorites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::WebhookLogs.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Webhooks.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::WorkspaceIntegrations.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::WorkspaceMemberInvites.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::WorkspaceMembers.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::WorkspaceThemes.def() + Relation::ProjectIdentifiers.def() } } diff --git a/crates/jet-api/src/extractors/mod.rs b/crates/jet-api/src/extractors/mod.rs index 098b290..9efd26e 100644 --- a/crates/jet-api/src/extractors/mod.rs +++ b/crates/jet-api/src/extractors/mod.rs @@ -1,3 +1,5 @@ pub mod require_instance; +pub mod user; pub use require_instance::*; +pub use user::*; diff --git a/crates/jet-api/src/http/api/authentication.rs b/crates/jet-api/src/http/api/authentication.rs index 6549c62..4ccfaa6 100644 --- a/crates/jet-api/src/http/api/authentication.rs +++ b/crates/jet-api/src/http/api/authentication.rs @@ -18,6 +18,7 @@ use validators_prelude::Host; use crate::models::{Error, JsonError}; use crate::session::AppClaims; +mod api_tokens; mod change_password; mod email_check; mod forgot_password; @@ -65,7 +66,10 @@ pub fn configure(http_client: reqwest::Client, config: &mut ServiceConfig) { .service(change_password::change_password) .service(forgot_password::forgot_password) .configure(|c| { - social_auth::configure(http_client, c); + social_auth::configure(http_client.clone(), c); + }) + .configure(|c| { + api_tokens::configure(http_client.clone(), c); }), ); } diff --git a/crates/jet-contract/src/lib.rs b/crates/jet-contract/src/lib.rs index afb7600..b97c5cf 100644 --- a/crates/jet-contract/src/lib.rs +++ b/crates/jet-contract/src/lib.rs @@ -10,17 +10,29 @@ pub use {deadpool_redis, redis, rumqttc, serde}; pub type Id = Uuid; #[derive(Debug, PartialEq, Serialize, Deserialize, Deref, Constructor)] +#[serde(transparent)] pub struct MagicLinkKey(String); #[derive(Debug, PartialEq, Serialize, Deserialize, Deref, Constructor)] +#[serde(transparent)] pub struct MagicLinkToken(String); #[derive(Debug, PartialEq, Serialize, Deserialize, Deref, Constructor)] +#[serde(transparent)] pub struct UserId(pub Id); #[derive(Debug, PartialEq, Serialize, Deserialize, Deref, Constructor)] +#[serde(transparent)] pub struct IssueId(pub Id); +#[derive(Debug, PartialEq, Serialize, Deserialize, Deref, Constructor)] +#[serde(transparent)] +pub struct ApiTokenId(pub Id); + +#[derive(Debug, PartialEq, Serialize, Deserialize, Deref, Constructor)] +#[serde(transparent)] +pub struct WorkspaceSlug(pub String); + #[derive(Debug, Serialize, Deserialize)] pub struct IssueDetails { pub name: String, diff --git a/plane_db.sql b/plane_db.sql index 3bb6882..041c3f7 100644 --- a/plane_db.sql +++ b/plane_db.sql @@ -5,6 +5,9 @@ -- Dumped from database version 15.2 -- Dumped by pg_dump version 16.1 + +\set ON_ERROR_STOP true + SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; @@ -346,10 +349,6 @@ CREATE TABLE api_activity_logs ( CONSTRAINT api_activity_logs_response_code_check CHECK ((response_code >= 0)) ); --- --- Name: api_tokens; Type: TABLE; Schema: public; Owner: plane --- - CREATE TABLE api_tokens ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -357,15 +356,16 @@ CREATE TABLE api_tokens ( token character varying(255) NOT NULL, label character varying(255) NOT NULL, user_type smallint NOT NULL, - created_by_id uuid, - updated_by_id uuid, + created_by_id uuid REFERENCES users (id), + updated_by_id uuid REFERENCES users (id), user_id uuid NOT NULL REFERENCES users (id), workspace_id uuid, description text NOT NULL, expired_at timestamp with time zone, is_active boolean NOT NULL, last_used timestamp with time zone, - CONSTRAINT api_tokens_user_type_check CHECK ((user_type >= 0)) + CONSTRAINT api_tokens_user_type_check CHECK ((user_type >= 0)), + CONSTRAINT workspace_fk FOREIGN KEY (workspace_id) REFERENCES workspaces (id) ); -- @@ -1814,1216 +1814,6 @@ CREATE TABLE workspace_themes ( workspace_id uuid NOT NULL REFERENCES workspaces (id) ); --- --- Data for Name: analytic_views; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY analytic_views (created_at, updated_at, id, name, description, query, query_dict, created_by_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: api_activity_logs; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY api_activity_logs (created_at, updated_at, id, token_identifier, path, method, query_params, headers, body, response_code, response_body, ip_address, user_agent, created_by_id, updated_by_id) FROM stdin; -\. - --- --- Data for Name: api_tokens; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY api_tokens (created_at, updated_at, id, token, label, user_type, created_by_id, updated_by_id, user_id, workspace_id, description, expired_at, is_active, last_used) FROM stdin; -\. - --- --- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY auth_group (id, name) FROM stdin; -\. - --- --- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY auth_group_permissions (id, group_id, permission_id) FROM stdin; -\. - --- --- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY auth_permission (id, name, content_type_id, codename) FROM stdin; -1 Can add permission 1 add_permission -2 Can change permission 1 change_permission -3 Can delete permission 1 delete_permission -4 Can view permission 1 view_permission -5 Can add group 2 add_group -6 Can change group 2 change_group -7 Can delete group 2 delete_group -8 Can view group 2 view_group -9 Can add content type 3 add_contenttype -10 Can change content type 3 change_contenttype -11 Can delete content type 3 delete_contenttype -12 Can view content type 3 view_contenttype -13 Can add session 4 add_session -14 Can change session 4 change_session -15 Can delete session 4 delete_session -16 Can view session 4 view_session -17 Can add User 5 add_user -18 Can change User 5 change_user -19 Can delete User 5 delete_user -20 Can view User 5 view_user -21 Can add Cycle 6 add_cycle -22 Can change Cycle 6 change_cycle -23 Can delete Cycle 6 delete_cycle -24 Can view Cycle 6 view_cycle -25 Can add Issue 7 add_issue -26 Can change Issue 7 change_issue -27 Can delete Issue 7 delete_issue -28 Can view Issue 7 view_issue -29 Can add Project 8 add_project -30 Can change Project 8 change_project -31 Can delete Project 8 delete_project -32 Can view Project 8 view_project -33 Can add Team 9 add_team -34 Can change Team 9 change_team -35 Can delete Team 9 delete_team -36 Can view Team 9 view_team -37 Can add Workspace 10 add_workspace -38 Can change Workspace 10 change_workspace -39 Can delete Workspace 10 delete_workspace -40 Can view Workspace 10 view_workspace -41 Can add Workspace Member Invite 11 add_workspacememberinvite -42 Can change Workspace Member Invite 11 change_workspacememberinvite -43 Can delete Workspace Member Invite 11 delete_workspacememberinvite -44 Can view Workspace Member Invite 11 view_workspacememberinvite -45 Can add Team Member 12 add_teammember -46 Can change Team Member 12 change_teammember -47 Can delete Team Member 12 delete_teammember -48 Can view Team Member 12 view_teammember -49 Can add State 13 add_state -50 Can change State 13 change_state -51 Can delete State 13 delete_state -52 Can view State 13 view_state -53 Can add Social Login Connection 14 add_socialloginconnection -54 Can change Social Login Connection 14 change_socialloginconnection -55 Can delete Social Login Connection 14 delete_socialloginconnection -56 Can view Social Login Connection 14 view_socialloginconnection -57 Can add Project Member Invite 15 add_projectmemberinvite -58 Can change Project Member Invite 15 change_projectmemberinvite -59 Can delete Project Member Invite 15 delete_projectmemberinvite -60 Can view Project Member Invite 15 view_projectmemberinvite -61 Can add Project Identifier 16 add_projectidentifier -62 Can change Project Identifier 16 change_projectidentifier -63 Can delete Project Identifier 16 delete_projectidentifier -64 Can view Project Identifier 16 view_projectidentifier -65 Can add Label 17 add_label -66 Can change Label 17 change_label -67 Can delete Label 17 delete_label -68 Can view Label 17 view_label -69 Can add Issue Sequence 18 add_issuesequence -70 Can change Issue Sequence 18 change_issuesequence -71 Can delete Issue Sequence 18 delete_issuesequence -72 Can view Issue Sequence 18 view_issuesequence -73 Can add Issue Property 19 add_issueproperty -74 Can change Issue Property 19 change_issueproperty -75 Can delete Issue Property 19 delete_issueproperty -76 Can view Issue Property 19 view_issueproperty -77 Can add Issue Label 20 add_issuelabel -78 Can change Issue Label 20 change_issuelabel -79 Can delete Issue Label 20 delete_issuelabel -80 Can view Issue Label 20 view_issuelabel -81 Can add Issue Comment 21 add_issuecomment -82 Can change Issue Comment 21 change_issuecomment -83 Can delete Issue Comment 21 delete_issuecomment -84 Can view Issue Comment 21 view_issuecomment -85 Can add Issue Blocker 22 add_issueblocker -86 Can change Issue Blocker 22 change_issueblocker -87 Can delete Issue Blocker 22 delete_issueblocker -88 Can view Issue Blocker 22 view_issueblocker -89 Can add Issue Assignee 23 add_issueassignee -90 Can change Issue Assignee 23 change_issueassignee -91 Can delete Issue Assignee 23 delete_issueassignee -92 Can view Issue Assignee 23 view_issueassignee -93 Can add Issue Activity 24 add_issueactivity -94 Can change Issue Activity 24 change_issueactivity -95 Can delete Issue Activity 24 delete_issueactivity -96 Can view Issue Activity 24 view_issueactivity -97 Can add File Asset 25 add_fileasset -98 Can change File Asset 25 change_fileasset -99 Can delete File Asset 25 delete_fileasset -100 Can view File Asset 25 view_fileasset -101 Can add Cycle Issue 26 add_cycleissue -102 Can change Cycle Issue 26 change_cycleissue -103 Can delete Cycle Issue 26 delete_cycleissue -104 Can view Cycle Issue 26 view_cycleissue -105 Can add Workspace Member 27 add_workspacemember -106 Can change Workspace Member 27 change_workspacemember -107 Can delete Workspace Member 27 delete_workspacemember -108 Can view Workspace Member 27 view_workspacemember -109 Can add Project Member 28 add_projectmember -110 Can change Project Member 28 change_projectmember -111 Can delete Project Member 28 delete_projectmember -112 Can view Project Member 28 view_projectmember -113 Can add Module 29 add_module -114 Can change Module 29 change_module -115 Can delete Module 29 delete_module -116 Can view Module 29 view_module -117 Can add Module Member 30 add_modulemember -118 Can change Module Member 30 change_modulemember -119 Can delete Module Member 30 delete_modulemember -120 Can view Module Member 30 view_modulemember -121 Can add Module Issue 31 add_moduleissue -122 Can change Module Issue 31 change_moduleissue -123 Can delete Module Issue 31 delete_moduleissue -124 Can view Module Issue 31 view_moduleissue -125 Can add Module Link 32 add_modulelink -126 Can change Module Link 32 change_modulelink -127 Can delete Module Link 32 delete_modulelink -128 Can view Module Link 32 view_modulelink -129 Can add API Token 33 add_apitoken -130 Can change API Token 33 change_apitoken -131 Can delete API Token 33 delete_apitoken -132 Can view API Token 33 view_apitoken -133 Can add Repository 34 add_githubrepository -134 Can change Repository 34 change_githubrepository -135 Can delete Repository 34 delete_githubrepository -136 Can view Repository 34 view_githubrepository -137 Can add Integration 35 add_integration -138 Can change Integration 35 change_integration -139 Can delete Integration 35 delete_integration -140 Can view Integration 35 view_integration -141 Can add Workspace Integration 36 add_workspaceintegration -142 Can change Workspace Integration 36 change_workspaceintegration -143 Can delete Workspace Integration 36 delete_workspaceintegration -144 Can view Workspace Integration 36 view_workspaceintegration -145 Can add Issue Link 37 add_issuelink -146 Can change Issue Link 37 change_issuelink -147 Can delete Issue Link 37 delete_issuelink -148 Can view Issue Link 37 view_issuelink -149 Can add Github Repository Sync 38 add_githubrepositorysync -150 Can change Github Repository Sync 38 change_githubrepositorysync -151 Can delete Github Repository Sync 38 delete_githubrepositorysync -152 Can view Github Repository Sync 38 view_githubrepositorysync -153 Can add Github Issue Sync 39 add_githubissuesync -154 Can change Github Issue Sync 39 change_githubissuesync -155 Can delete Github Issue Sync 39 delete_githubissuesync -156 Can view Github Issue Sync 39 view_githubissuesync -157 Can add Github Comment Sync 40 add_githubcommentsync -158 Can change Github Comment Sync 40 change_githubcommentsync -159 Can delete Github Comment Sync 40 delete_githubcommentsync -160 Can view Github Comment Sync 40 view_githubcommentsync -161 Can add Project Favorite 41 add_projectfavorite -162 Can change Project Favorite 41 change_projectfavorite -163 Can delete Project Favorite 41 delete_projectfavorite -164 Can view Project Favorite 41 view_projectfavorite -165 Can add Module Favorite 42 add_modulefavorite -166 Can change Module Favorite 42 change_modulefavorite -167 Can delete Module Favorite 42 delete_modulefavorite -168 Can view Module Favorite 42 view_modulefavorite -169 Can add Cycle Favorite 43 add_cyclefavorite -170 Can change Cycle Favorite 43 change_cyclefavorite -171 Can delete Cycle Favorite 43 delete_cyclefavorite -172 Can view Cycle Favorite 43 view_cyclefavorite -173 Can add Importer 44 add_importer -174 Can change Importer 44 change_importer -175 Can delete Importer 44 delete_importer -176 Can view Importer 44 view_importer -177 Can add Issue View 45 add_issueview -178 Can change Issue View 45 change_issueview -179 Can delete Issue View 45 delete_issueview -180 Can view Issue View 45 view_issueview -181 Can add View Favorite 46 add_issueviewfavorite -182 Can change View Favorite 46 change_issueviewfavorite -183 Can delete View Favorite 46 delete_issueviewfavorite -184 Can view View Favorite 46 view_issueviewfavorite -185 Can add Page 47 add_page -186 Can change Page 47 change_page -187 Can delete Page 47 delete_page -188 Can view Page 47 view_page -189 Can add Page Block 48 add_pageblock -190 Can change Page Block 48 change_pageblock -191 Can delete Page Block 48 delete_pageblock -192 Can view Page Block 48 view_pageblock -193 Can add Page Favorite 49 add_pagefavorite -194 Can change Page Favorite 49 change_pagefavorite -195 Can delete Page Favorite 49 delete_pagefavorite -196 Can view Page Favorite 49 view_pagefavorite -197 Can add Page Label 50 add_pagelabel -198 Can change Page Label 50 change_pagelabel -199 Can delete Page Label 50 delete_pagelabel -200 Can view Page Label 50 view_pagelabel -201 Can add Estimate 51 add_estimate -202 Can change Estimate 51 change_estimate -203 Can delete Estimate 51 delete_estimate -204 Can view Estimate 51 view_estimate -205 Can add Issue Attachment 52 add_issueattachment -206 Can change Issue Attachment 52 change_issueattachment -207 Can delete Issue Attachment 52 delete_issueattachment -208 Can view Issue Attachment 52 view_issueattachment -209 Can add Estimate Point 53 add_estimatepoint -210 Can change Estimate Point 53 change_estimatepoint -211 Can delete Estimate Point 53 delete_estimatepoint -212 Can view Estimate Point 53 view_estimatepoint -213 Can add Workspace Theme 54 add_workspacetheme -214 Can change Workspace Theme 54 change_workspacetheme -215 Can delete Workspace Theme 54 delete_workspacetheme -216 Can view Workspace Theme 54 view_workspacetheme -217 Can add Slack Project Sync 55 add_slackprojectsync -218 Can change Slack Project Sync 55 change_slackprojectsync -219 Can delete Slack Project Sync 55 delete_slackprojectsync -220 Can view Slack Project Sync 55 view_slackprojectsync -221 Can add Analytic 56 add_analyticview -222 Can change Analytic 56 change_analyticview -223 Can delete Analytic 56 delete_analyticview -224 Can view Analytic 56 view_analyticview -225 Can add Inbox 57 add_inbox -226 Can change Inbox 57 change_inbox -227 Can delete Inbox 57 delete_inbox -228 Can view Inbox 57 view_inbox -229 Can add InboxIssue 58 add_inboxissue -230 Can change InboxIssue 58 change_inboxissue -231 Can delete InboxIssue 58 delete_inboxissue -232 Can view InboxIssue 58 view_inboxissue -233 Can add Notification 59 add_notification -234 Can change Notification 59 change_notification -235 Can delete Notification 59 delete_notification -236 Can view Notification 59 view_notification -237 Can add Issue Subscriber 60 add_issuesubscriber -238 Can change Issue Subscriber 60 change_issuesubscriber -239 Can delete Issue Subscriber 60 delete_issuesubscriber -240 Can view Issue Subscriber 60 view_issuesubscriber -241 Can add Issue Reaction 61 add_issuereaction -242 Can change Issue Reaction 61 change_issuereaction -243 Can delete Issue Reaction 61 delete_issuereaction -244 Can view Issue Reaction 61 view_issuereaction -245 Can add Comment Reaction 62 add_commentreaction -246 Can change Comment Reaction 62 change_commentreaction -247 Can delete Comment Reaction 62 delete_commentreaction -248 Can view Comment Reaction 62 view_commentreaction -249 Can add Exporter 63 add_exporterhistory -250 Can change Exporter 63 change_exporterhistory -251 Can delete Exporter 63 delete_exporterhistory -252 Can view Exporter 63 view_exporterhistory -253 Can add Project Deploy Board 64 add_projectdeployboard -254 Can change Project Deploy Board 64 change_projectdeployboard -255 Can delete Project Deploy Board 64 delete_projectdeployboard -256 Can view Project Deploy Board 64 view_projectdeployboard -257 Can add Issue Vote 65 add_issuevote -258 Can change Issue Vote 65 change_issuevote -259 Can delete Issue Vote 65 delete_issuevote -260 Can view Issue Vote 65 view_issuevote -261 Can add Project Public Member 66 add_projectpublicmember -262 Can change Project Public Member 66 change_projectpublicmember -263 Can delete Project Public Member 66 delete_projectpublicmember -264 Can view Project Public Member 66 view_projectpublicmember -265 Can add Issue Relation 67 add_issuerelation -266 Can change Issue Relation 67 change_issuerelation -267 Can delete Issue Relation 67 delete_issuerelation -268 Can view Issue Relation 67 view_issuerelation -269 Can add Global View 68 add_globalview -270 Can change Global View 68 change_globalview -271 Can delete Global View 68 delete_globalview -272 Can view Global View 68 view_globalview -273 Can add Issue Mention 69 add_issuemention -274 Can change Issue Mention 69 change_issuemention -275 Can delete Issue Mention 69 delete_issuemention -276 Can view Issue Mention 69 view_issuemention -277 Can add Webhook 70 add_webhook -278 Can change Webhook 70 change_webhook -279 Can delete Webhook 70 delete_webhook -280 Can view Webhook 70 view_webhook -281 Can add Webhook Log 71 add_webhooklog -282 Can change Webhook Log 71 change_webhooklog -283 Can delete Webhook Log 71 delete_webhooklog -284 Can view Webhook Log 71 view_webhooklog -285 Can add API Activity Log 72 add_apiactivitylog -286 Can change API Activity Log 72 change_apiactivitylog -287 Can delete API Activity Log 72 delete_apiactivitylog -288 Can view API Activity Log 72 view_apiactivitylog -289 Can add Page Log 73 add_pagelog -290 Can change Page Log 73 change_pagelog -291 Can delete Page Log 73 delete_pagelog -292 Can view Page Log 73 view_pagelog -293 Can add Instance 74 add_instance -294 Can change Instance 74 change_instance -295 Can delete Instance 74 delete_instance -296 Can view Instance 74 view_instance -297 Can add Instance Configuration 75 add_instanceconfiguration -298 Can change Instance Configuration 75 change_instanceconfiguration -299 Can delete Instance Configuration 75 delete_instanceconfiguration -300 Can view Instance Configuration 75 view_instanceconfiguration -301 Can add Instance Admin 76 add_instanceadmin -302 Can change Instance Admin 76 change_instanceadmin -303 Can delete Instance Admin 76 delete_instanceadmin -304 Can view Instance Admin 76 view_instanceadmin -305 Can add Token 77 add_token -306 Can change Token 77 change_token -307 Can delete Token 77 delete_token -308 Can view Token 77 view_token -309 Can add token 78 add_tokenproxy -310 Can change token 78 change_tokenproxy -311 Can delete token 78 delete_tokenproxy -312 Can view token 78 view_tokenproxy -313 Can add blacklisted token 79 add_blacklistedtoken -314 Can change blacklisted token 79 change_blacklistedtoken -315 Can delete blacklisted token 79 delete_blacklistedtoken -316 Can view blacklisted token 79 view_blacklistedtoken -317 Can add outstanding token 80 add_outstandingtoken -318 Can change outstanding token 80 change_outstandingtoken -319 Can delete outstanding token 80 delete_outstandingtoken -320 Can view outstanding token 80 view_outstandingtoken -321 Can add crontab 81 add_crontabschedule -322 Can change crontab 81 change_crontabschedule -323 Can delete crontab 81 delete_crontabschedule -324 Can view crontab 81 view_crontabschedule -325 Can add interval 82 add_intervalschedule -326 Can change interval 82 change_intervalschedule -327 Can delete interval 82 delete_intervalschedule -328 Can view interval 82 view_intervalschedule -329 Can add periodic task 83 add_periodictask -330 Can change periodic task 83 change_periodictask -331 Can delete periodic task 83 delete_periodictask -332 Can view periodic task 83 view_periodictask -333 Can add periodic tasks 84 add_periodictasks -334 Can change periodic tasks 84 change_periodictasks -335 Can delete periodic tasks 84 delete_periodictasks -336 Can view periodic tasks 84 view_periodictasks -337 Can add solar event 85 add_solarschedule -338 Can change solar event 85 change_solarschedule -339 Can delete solar event 85 delete_solarschedule -340 Can view solar event 85 view_solarschedule -341 Can add clocked 86 add_clockedschedule -342 Can change clocked 86 change_clockedschedule -343 Can delete clocked 86 delete_clockedschedule -344 Can view clocked 86 view_clockedschedule -\. - --- --- Data for Name: authtoken_token; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY authtoken_token (key, created, user_id) FROM stdin; -\. - --- --- Data for Name: comment_reactions; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY comment_reactions (created_at, updated_at, id, reaction, actor_id, comment_id, created_by_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: cycle_favorites; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY cycle_favorites (created_at, updated_at, id, created_by_id, cycle_id, project_id, updated_by_id, user_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: cycle_issues; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY cycle_issues (created_at, updated_at, id, created_by_id, cycle_id, issue_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: cycles; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY cycles (created_at, updated_at, id, name, description, start_date, end_date, created_by_id, owned_by_id, project_id, updated_by_id, workspace_id, view_props, sort_order, external_id, external_source) FROM stdin; -\. - --- --- Data for Name: django_celery_beat_clockedschedule; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY django_celery_beat_clockedschedule (id, clocked_time) FROM stdin; -\. - --- --- Data for Name: django_celery_beat_crontabschedule; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY django_celery_beat_crontabschedule (id, minute, hour, day_of_week, day_of_month, month_of_year, timezone) FROM stdin; -1 0 4 * * * UTC -2 0 0 * * * UTC -\. - --- --- Data for Name: django_celery_beat_intervalschedule; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY django_celery_beat_intervalschedule (id, every, period) FROM stdin; -\. - --- --- Data for Name: django_celery_beat_periodictask; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY django_celery_beat_periodictask (id, name, task, args, kwargs, queue, exchange, routing_key, expires, enabled, last_run_at, total_run_count, date_changed, description, crontab_id, interval_id, solar_id, one_off, start_time, priority, headers, clocked_id, expire_seconds) FROM stdin; -1 celery.backend_cleanup celery.backend_cleanup [] {} \N \N \N \N t 2024-01-17 04:00:00.008654+00 4 2024-01-17 05:16:00.046764+00 1 \N \N f \N \N {} \N 43200 -2 check-every-day-to-archive-and-close plane.bgtasks.issue_automation_task.archive_and_close_old_issues [] {} \N \N \N \N t 2024-01-17 00:00:00.008534+00 4 2024-01-17 05:16:00.086051+00 2 \N \N f \N \N {} \N \N -3 check-every-day-to-delete_exporter_history plane.bgtasks.exporter_expired_task.delete_old_s3_link [] {} \N \N \N \N t 2024-01-17 00:00:00.051839+00 4 2024-01-17 05:16:00.102192+00 2 \N \N f \N \N {} \N \N -4 check-every-day-to-delete-file-asset plane.bgtasks.file_asset_task.delete_file_asset [] {} \N \N \N \N t 2024-01-17 00:00:00.031259+00 4 2024-01-17 05:16:00.116154+00 2 \N \N f \N \N {} \N \N -\. - --- --- Data for Name: django_celery_beat_periodictasks; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY django_celery_beat_periodictasks (ident, last_update) FROM stdin; -1 2024-01-17 05:16:00.11705+00 -\. - --- --- Data for Name: django_celery_beat_solarschedule; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY django_celery_beat_solarschedule (id, event, latitude, longitude) FROM stdin; -\. - --- --- Data for Name: django_content_type; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY django_content_type (id, app_label, model) FROM stdin; -1 auth permission -2 auth group -3 contenttypes contenttype -4 sessions session -5 db user -6 db cycle -7 db issue -8 db project -9 db team -10 db workspace -11 db workspacememberinvite -12 db teammember -13 db state -14 db socialloginconnection -15 db projectmemberinvite -16 db projectidentifier -17 db label -18 db issuesequence -19 db issueproperty -20 db issuelabel -21 db issuecomment -22 db issueblocker -23 db issueassignee -24 db issueactivity -25 db fileasset -26 db cycleissue -27 db workspacemember -28 db projectmember -29 db module -30 db modulemember -31 db moduleissue -32 db modulelink -33 db apitoken -34 db githubrepository -35 db integration -36 db workspaceintegration -37 db issuelink -38 db githubrepositorysync -39 db githubissuesync -40 db githubcommentsync -41 db projectfavorite -42 db modulefavorite -43 db cyclefavorite -44 db importer -45 db issueview -46 db issueviewfavorite -47 db page -48 db pageblock -49 db pagefavorite -50 db pagelabel -51 db estimate -52 db issueattachment -53 db estimatepoint -54 db workspacetheme -55 db slackprojectsync -56 db analyticview -57 db inbox -58 db inboxissue -59 db notification -60 db issuesubscriber -61 db issuereaction -62 db commentreaction -63 db exporterhistory -64 db projectdeployboard -65 db issuevote -66 db projectpublicmember -67 db issuerelation -68 db globalview -69 db issuemention -70 db webhook -71 db webhooklog -72 db apiactivitylog -73 db pagelog -74 license instance -75 license instanceconfiguration -76 license instanceadmin -77 authtoken token -78 authtoken tokenproxy -79 token_blacklist blacklistedtoken -80 token_blacklist outstandingtoken -81 django_celery_beat crontabschedule -82 django_celery_beat intervalschedule -83 django_celery_beat periodictask -84 django_celery_beat periodictasks -85 django_celery_beat solarschedule -86 django_celery_beat clockedschedule -\. - --- --- Data for Name: django_session; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY django_session (session_key, session_data, expire_date) FROM stdin; -\. - --- --- Data for Name: estimate_points; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY estimate_points (created_at, updated_at, id, key, description, value, created_by_id, estimate_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: estimates; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY estimates (created_at, updated_at, id, name, description, created_by_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: exporters; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY exporters (created_at, updated_at, id, project, provider, status, reason, key, url, token, created_by_id, initiated_by_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: file_assets; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY file_assets (created_at, updated_at, id, attributes, asset, created_by_id, updated_by_id, workspace_id, is_deleted) FROM stdin; -\. - --- --- Data for Name: github_comment_syncs; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY github_comment_syncs (created_at, updated_at, id, repo_comment_id, comment_id, created_by_id, issue_sync_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: github_issue_syncs; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY github_issue_syncs (created_at, updated_at, id, repo_issue_id, github_issue_id, issue_url, created_by_id, issue_id, project_id, repository_sync_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: github_repositories; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY github_repositories (created_at, updated_at, id, name, url, config, repository_id, owner, created_by_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: github_repository_syncs; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY github_repository_syncs (created_at, updated_at, id, credentials, actor_id, created_by_id, label_id, project_id, repository_id, updated_by_id, workspace_id, workspace_integration_id) FROM stdin; -\. - --- --- Data for Name: global_views; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY global_views (created_at, updated_at, id, name, description, query, access, query_data, sort_order, created_by_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: importers; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY importers (created_at, updated_at, id, service, status, metadata, config, data, created_by_id, initiated_by_id, project_id, token_id, updated_by_id, workspace_id, imported_data) FROM stdin; -\. - --- --- Data for Name: inbox_issues; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY inbox_issues (created_at, updated_at, id, status, snoozed_till, source, created_by_id, duplicate_to_id, inbox_id, issue_id, project_id, updated_by_id, workspace_id, external_id, external_source) FROM stdin; -\. - --- --- Data for Name: inboxes; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY inboxes (created_at, updated_at, id, name, description, is_default, view_props, created_by_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: instance_admins; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY instance_admins (created_at, updated_at, id, role, is_verified, created_by_id, instance_id, updated_by_id, user_id) FROM stdin; -2024-01-13 20:54:28.511671+00 2024-01-13 20:54:28.511684+00 fc519655-c149-463e-b99e-8570bd14001d 20 f \N aab60202-832f-4727-ab38-2b940194142d \N e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 -\. - --- --- Data for Name: instance_configurations; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY instance_configurations (created_at, updated_at, id, key, value, category, is_encrypted, created_by_id, updated_by_id) FROM stdin; -2024-01-13 20:50:53.42641+00 2024-01-13 20:50:53.42934+00 3391693e-27b5-4238-8729-dbed6403a667 ENABLE_SIGNUP 1 AUTHENTICATION f \N \N -2024-01-13 20:50:53.432381+00 2024-01-13 20:50:53.433718+00 83ef15a2-eda0-400f-9e27-bafb2ce90c24 ENABLE_EMAIL_PASSWORD 1 AUTHENTICATION f \N \N -2024-01-13 20:50:53.436345+00 2024-01-13 20:50:53.437887+00 786e9f58-a344-48c2-a7a6-3f196fa62635 ENABLE_MAGIC_LINK_LOGIN 0 AUTHENTICATION f \N \N -2024-01-13 20:50:53.440556+00 2024-01-13 20:50:53.44193+00 b8481f45-3865-41ef-b5dc-3e557e806d06 GOOGLE_CLIENT_ID "" GOOGLE f \N \N -2024-01-13 20:50:53.686222+00 2024-01-13 20:50:53.790164+00 f2679f2c-0b64-4697-8f50-dd3128de9894 OPENAI_API_KEY gAAAAABlovetyche15iAT2UFFkEwId9T6apW9MYcwdJDTA6g3vezUIOZRvX5rbQVmkyDmrB6cjxNgCka4H2gnBQ4H2TeN4oljw== OPENAI t \N \N -2024-01-13 20:50:53.792748+00 2024-01-13 20:50:53.79431+00 fc29f571-fe5f-4e14-acbc-9cb14eca4e79 GPT_ENGINE gpt-3.5-turbo SMTP f \N \N -2024-01-13 20:50:53.796749+00 2024-01-13 20:50:53.798279+00 6f0be51d-69e0-4f31-b4bf-7868287cf8fa UNSPLASH_ACCESS_KEY UNSPLASH t \N \N -2024-01-13 20:50:53.444497+00 2024-01-13 20:50:53.44615+00 0af107bc-bd59-4ce8-ba37-6ef294ce91d7 GITHUB_CLIENT_ID a3f301e0ea89bdfcf2c8 GITHUB f \N \N -2024-01-13 20:50:53.448671+00 2024-01-13 20:50:53.557321+00 f7e19314-1e0a-4d67-86ea-7eb2d8a3fd1e GITHUB_CLIENT_SECRET gAAAAABlovig0ptoeF0uE3KcjYCGSp0OQ4WyAh81JBSXr3E4_a9ieEVU9cpAK4Gd1OFGVlH-wChiThfoa8tFVL-MYd2PzXHbpWsuko22ncHObbYypXWKjboWwbskBQjepMGxhmJAue2Z GITHUB t \N \N -2024-01-13 20:50:53.560061+00 2024-01-13 20:50:53.561602+00 45dafc2a-c3d6-48b7-bafd-bbc6196ee7e0 EMAIL_HOST "" SMTP f \N \N -2024-01-13 20:50:53.564145+00 2024-01-13 20:50:53.565559+00 a2671acb-ab28-40b1-aa04-4bd7e1cefe03 EMAIL_HOST_USER "" SMTP f \N \N -2024-01-13 20:50:53.567846+00 2024-01-13 20:50:53.671847+00 1a801d98-c468-4353-bfd6-9eceaca8b440 EMAIL_HOST_PASSWORD gAAAAABlovkxZ6LrkVFGzjYxX7UE4hqMOqhJkSo-AJ5DGHsg2RN6XOfAf7UMO-N0c1QPXjCnR_AmGbRZIU6RI0BwZ1Zmcs8pOQ== SMTP t \N \N -2024-01-13 20:50:53.674462+00 2024-01-13 20:50:53.675934+00 5eb9e5c5-6a3d-49e3-a5d9-a4cec4a46c9c EMAIL_PORT 587 SMTP f \N \N -2024-01-13 20:50:53.678384+00 2024-01-13 20:50:53.680008+00 237a4cb1-1595-4341-a9b2-a2cc543b1eae EMAIL_FROM Tsumanu SMTP f \N \N -2024-01-13 20:50:53.682252+00 2024-01-13 20:50:53.683726+00 c6143580-eeb3-4884-b565-c1f1d6c58064 EMAIL_USE_TLS 1 SMTP f \N \N -\. - --- --- Data for Name: instances; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY instances (created_at, updated_at, id, instance_name, whitelist_emails, instance_id, license_key, api_key, version, last_checked_at, namespace, is_telemetry_enabled, is_support_required, is_setup_done, is_signup_screen_visited, user_count, is_verified, created_by_id, updated_by_id) FROM stdin; -2024-01-13 20:50:49.914969+00 2024-01-13 20:54:28.514397+00 aab60202-832f-4727-ab38-2b940194142d Plane Free \N 76b3365f6dde64f8bd352f97 \N bf54fffe31866be4 0.14.0 2024-01-13 20:50:49.9137+00 \N t t t f 0 f \N \N -\. - --- --- Data for Name: integrations; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY integrations (created_at, updated_at, id, title, provider, network, description, author, webhook_url, webhook_secret, redirect_url, metadata, verified, avatar_url, created_by_id, updated_by_id) FROM stdin; -\. - --- --- Data for Name: issue_activities; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_activities (created_at, updated_at, id, verb, field, old_value, new_value, comment, attachments, created_by_id, issue_id, issue_comment_id, project_id, updated_by_id, workspace_id, actor_id, new_identifier, old_identifier, epoch) FROM stdin; -2024-01-13 20:57:57.743001+00 2024-01-13 20:57:57.743017+00 bb19127c-5675-4d3a-99b8-023a17f1ccd9 created \N \N \N created the issue {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N \N 1705179477 -2024-01-14 07:29:11.997895+00 2024-01-14 07:29:11.99791+00 d9dfb95a-83f1-478e-9568-7a5d5f7e51f1 updated state Backlog In Progress updated the state to {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 85afd240-19f4-4272-a70d-e0275b8da021 a41fbd68-643c-4e46-98e2-c87ff2c24cc0 1705217351 -2024-01-14 07:30:23.218071+00 2024-01-14 07:30:23.218084+00 f0c6ffdf-4405-4a55-a13c-d23d60c921f7 updated start_date 2024-01-01 updated the start date to {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N \N 1705217423 -2024-01-14 07:30:41.116509+00 2024-01-14 07:30:41.116524+00 0370bbe4-e62b-455f-867f-f0bca4aa11ba updated start_date 2024-01-01 updated the start date to {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N \N 1705217441 -2024-01-14 07:30:41.116584+00 2024-01-14 07:30:41.11659+00 d81436ec-e6be-497f-a78a-9177f8727125 updated labels Concept added label {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 58bc8ba2-ec4d-41d8-b2b6-0d75b8a8832e \N 1705217441 -2024-01-14 07:30:47.783347+00 2024-01-14 07:30:47.78336+00 ca114f54-fa3a-4fcb-8a66-8cee0a68fd69 created modules Game concept added module Game concept {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 1a5ec757-b962-4a97-a1f5-1bc61ef32b71 \N 1705217447 -2024-01-14 07:31:11.648601+00 2024-01-14 07:31:11.648616+00 d242c09f-fb0d-4868-94ae-1c7db59858e9 updated labels Concept removed label {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N 58bc8ba2-ec4d-41d8-b2b6-0d75b8a8832e 1705217471 -2024-01-14 07:31:23.922189+00 2024-01-14 07:31:23.922204+00 3915750c-f947-4f71-a3cf-97a0fb425b26 updated labels Concept added label {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 58bc8ba2-ec4d-41d8-b2b6-0d75b8a8832e \N 1705217483 -2024-01-14 07:31:48.699574+00 2024-01-14 07:31:48.699587+00 913127bf-a129-4285-8e35-c81ab1b624f7 updated priority none medium updated the priority to {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N \N 1705217508 -2024-01-14 07:32:05.770532+00 2024-01-14 07:32:05.770546+00 1b2cd8f6-373e-482b-9208-beb614257505 updated priority medium none updated the priority to {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N \N 1705217525 -2024-01-14 07:32:05.770601+00 2024-01-14 07:32:05.770606+00 e36d8c82-990c-4ee5-8a67-f9374d1220f4 updated labels Concept removed label {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N 58bc8ba2-ec4d-41d8-b2b6-0d75b8a8832e 1705217525 -2024-01-14 07:32:23.167296+00 2024-01-14 07:32:23.16731+00 759209a6-01a3-4aee-a2d0-952cb23b25ba updated assignees Tsumanu added assignee {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N 1705217543 -2024-01-14 07:32:23.167365+00 2024-01-14 07:32:23.16737+00 61cc7072-b51c-4892-89d2-632097758802 updated labels Concept added label {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 58bc8ba2-ec4d-41d8-b2b6-0d75b8a8832e \N 1705217543 -2024-01-14 09:58:20.829715+00 2024-01-14 09:58:20.829726+00 a6d76c0d-e7de-40e0-96a9-0c200e99f04c created link \N https://board.ita-prog.pl/our-nightmares/projects/cad91ae3-a3a3-4651-be91-b485e8abde0e/pages created a link {} \N a574a73b-4c99-4a3b-a445-c087cd6ca685 \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 85ecf167-f9db-4d67-b873-15b0b8d93097 \N 1705226300 -\. - --- --- Data for Name: issue_assignees; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_assignees (created_at, updated_at, id, assignee_id, created_by_id, issue_id, project_id, updated_by_id, workspace_id) FROM stdin; -2024-01-14 07:32:34.30465+00 2024-01-14 07:32:34.304665+00 a7f4eee2-24c8-4ab4-8b9b-4390babe87fe e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 a574a73b-4c99-4a3b-a445-c087cd6ca685 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 -\. - --- --- Data for Name: issue_attachments; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_attachments (created_at, updated_at, id, attributes, asset, created_by_id, issue_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: issue_blockers; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_blockers (created_at, updated_at, id, block_id, blocked_by_id, created_by_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: issue_comments; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_comments (created_at, updated_at, id, comment_stripped, attachments, created_by_id, issue_id, project_id, updated_by_id, workspace_id, actor_id, comment_html, comment_json, access, external_id, external_source) FROM stdin; -\. - --- --- Data for Name: issue_labels; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_labels (created_at, updated_at, id, created_by_id, issue_id, label_id, project_id, updated_by_id, workspace_id) FROM stdin; -2024-01-14 07:32:34.309244+00 2024-01-14 07:32:34.309257+00 7dc0a42e-1b3e-4b29-ac6c-008abb1894e3 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 a574a73b-4c99-4a3b-a445-c087cd6ca685 58bc8ba2-ec4d-41d8-b2b6-0d75b8a8832e cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 -\. - --- --- Data for Name: issue_links; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_links (created_at, updated_at, id, title, url, created_by_id, issue_id, project_id, updated_by_id, workspace_id, metadata) FROM stdin; -2024-01-14 09:58:20.667727+00 2024-01-14 09:58:20.667742+00 85ecf167-f9db-4d67-b873-15b0b8d93097 pages https://board.ita-prog.pl/our-nightmares/projects/cad91ae3-a3a3-4651-be91-b485e8abde0e/pages e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 a574a73b-4c99-4a3b-a445-c087cd6ca685 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 {} -\. - --- --- Data for Name: issue_mentions; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_mentions (created_at, updated_at, id, created_by_id, issue_id, mention_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: issue_properties; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_properties (created_at, updated_at, id, properties, created_by_id, project_id, updated_by_id, user_id, workspace_id) FROM stdin; -2024-01-13 20:55:59.821418+00 2024-01-13 20:55:59.821433+00 a7cfc05c-1e4d-4c1f-8413-b9b2fdc3cd8c {"key": true, "link": true, "state": true, "labels": true, "assignee": true, "due_date": true, "estimate": true, "priority": true, "created_on": true, "start_date": true, "updated_on": true, "sub_issue_count": true, "attachment_count": true} e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 -\. - --- --- Data for Name: issue_reactions; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_reactions (created_at, updated_at, id, reaction, actor_id, created_by_id, issue_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: issue_relations; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_relations (created_at, updated_at, id, relation_type, created_by_id, issue_id, project_id, related_issue_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: issue_sequences; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_sequences (created_at, updated_at, id, sequence, deleted, created_by_id, issue_id, project_id, updated_by_id, workspace_id) FROM stdin; -2024-01-13 20:57:57.650586+00 2024-01-13 20:57:57.650599+00 dd8e7c3c-a860-4b20-9882-5646915b65ef 1 f e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 a574a73b-4c99-4a3b-a445-c087cd6ca685 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 -\. - --- --- Data for Name: issue_subscribers; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_subscribers (created_at, updated_at, id, created_by_id, issue_id, project_id, subscriber_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: issue_views; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_views (created_at, updated_at, id, name, description, query, access, query_data, created_by_id, project_id, updated_by_id, workspace_id) FROM stdin; -2024-01-13 20:58:31.892575+00 2024-01-13 20:58:31.892589+00 8d2896f2-2b32-41c8-b51e-5570bb4daa5c Game concept {} 1 {} e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 -\. - --- --- Data for Name: issue_votes; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issue_votes (created_at, updated_at, id, vote, actor_id, created_by_id, issue_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: issues; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY issues (created_at, updated_at, id, name, description, priority, start_date, target_date, sequence_id, created_by_id, parent_id, project_id, state_id, updated_by_id, workspace_id, description_html, description_stripped, completed_at, sort_order, estimate_point, archived_at, is_draft, external_id, external_source) FROM stdin; -2024-01-13 20:57:57.647036+00 2024-01-14 09:58:20.827204+00 a574a73b-4c99-4a3b-a445-c087cd6ca685 Create concept "" none \N \N 1 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N cad91ae3-a3a3-4651-be91-b485e8abde0e 85afd240-19f4-4272-a70d-e0275b8da021 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67

\N 65535 \N \N f \N \N -\. - --- --- Data for Name: labels; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY labels (created_at, updated_at, id, name, description, created_by_id, project_id, updated_by_id, workspace_id, parent_id, color, sort_order, external_id, external_source) FROM stdin; -2024-01-14 07:30:40.918405+00 2024-01-14 07:30:40.918421+00 58bc8ba2-ec4d-41d8-b2b6-0d75b8a8832e Concept e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 \N #ff0000 65535 \N \N -\. - --- --- Data for Name: module_favorites; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY module_favorites (created_at, updated_at, id, created_by_id, module_id, project_id, updated_by_id, user_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: module_issues; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY module_issues (created_at, updated_at, id, created_by_id, issue_id, module_id, project_id, updated_by_id, workspace_id) FROM stdin; -2024-01-14 07:30:47.696994+00 2024-01-14 07:30:47.697009+00 80b184fe-2e31-4869-8c28-18680102e70a e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 a574a73b-4c99-4a3b-a445-c087cd6ca685 1a5ec757-b962-4a97-a1f5-1bc61ef32b71 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 -\. - --- --- Data for Name: module_links; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY module_links (created_at, updated_at, id, title, url, created_by_id, module_id, project_id, updated_by_id, workspace_id, metadata) FROM stdin; -\. - --- --- Data for Name: module_members; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY module_members (created_at, updated_at, id, created_by_id, member_id, module_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: modules; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY modules (created_at, updated_at, id, name, description, description_text, description_html, start_date, target_date, status, created_by_id, lead_id, project_id, updated_by_id, workspace_id, view_props, sort_order, external_id, external_source) FROM stdin; -2024-01-13 20:58:23.096082+00 2024-01-13 20:58:23.096097+00 1a5ec757-b962-4a97-a1f5-1bc61ef32b71 Game concept \N \N \N \N backlog e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 {} 65535 \N \N -\. - --- --- Data for Name: notifications; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY notifications (created_at, updated_at, id, data, entity_identifier, entity_name, title, message, message_html, message_stripped, sender, read_at, snoozed_till, archived_at, created_by_id, project_id, receiver_id, triggered_by_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: page_blocks; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY page_blocks (created_at, updated_at, id, name, description, description_html, description_stripped, completed_at, created_by_id, issue_id, page_id, project_id, updated_by_id, workspace_id, sort_order, sync) FROM stdin; -\. - --- --- Data for Name: page_favorites; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY page_favorites (created_at, updated_at, id, created_by_id, page_id, project_id, updated_by_id, user_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: page_labels; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY page_labels (created_at, updated_at, id, created_by_id, label_id, page_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: page_logs; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY page_logs (created_at, updated_at, id, transaction, entity_identifier, entity_name, created_by_id, page_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: pages; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY pages (created_at, updated_at, id, name, description, description_html, description_stripped, access, created_by_id, owned_by_id, project_id, updated_by_id, workspace_id, color, archived_at, is_locked, parent_id) FROM stdin; -2024-01-13 21:00:20.70363+00 2024-01-13 21:00:27.114294+00 f8e5e8a5-b38d-4685-9dd9-2f90a5d367e6 Zebrane pomysły ""

Title:

Our Nightmares

Engine:

Godot 4

Main plot:

W bliżej nieokreślonym roku z gwiazdy neutronowej wydostał się kawałeczek Dziwnej materii i korzystając z możliwości redefiniowania praw fizyki uderzył w Ziemię dosłownie chwilę później.

Wszystko w tym momencie zaczęło się zniekształcać i tradycyjna fizyka przestała działać. Na świecie pojawiły się potwory z legend, baśni i starych wierzeń. Powstawały one zawsze tam gdzie ludzie byli przerażeni i szybko zrozumiano, że to jest problemem.

Na niebie natomiast powstała smuga, która jeśli się na nią patrzy zbyt długo powiększa się, aż zajmuje cały obszar widzenia po czym osoba albo rozpada się albo zmienia w potworną abominację. Część ludzi uważa, że to symulacja komputerowa uległa uszkodzeniu i czekają na patch, inni że to czas sądu, a jeszcze inni, że świat po prostu się skończył.

Concept:

Wszystkie jednostki posiadają Fear metter który wpływa na globalny Fear. Gdy Fear osiąga określony poziom powstaje nowy potwór, podnoszący automatycznie Fear wszystkich jednostek (cascade effect żeby wywołać w graczu strach). Dodatkowo czym więcej jednostek tym więcej przerażenia otrzymuje gracz po przełamaniu bariery powodując late game bardziej wymagający.

Cykl dnia i nocy sprawia, że w nocy jednostki otrzymują Fear za każdym razem, a podstawowy potwór zawsze wymaga minimum żeby 3 jednostki istniały

Rozwijanie technologii Fear jest konieczne do zakończenia gry, ale efekt zawsze jest losowy. Wynalazek zawsze będzie albo nieskuteczny, albo będzie powodował negatywny efekt albo pozytywny.

Jednostka, na którą się kliknie 5x spogląda w niebo i albo rozpada się albo zamienia w potwora.

\N 0 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 \N f \N -2024-01-13 21:01:23.501721+00 2024-01-13 21:01:28.404085+00 35075b09-ff4f-41b1-b84d-eba79c0b8b6d ZarzÄ…dzanie zasobami ""

Gracz nie wydobywa ani nie poszukuje żadnych konkretnych zasobów. Wszystko jest zarządzane przez miasto i w miarę jak miasto się rozwija lub jest sterroryzowane Zasoby są automatycznie gromadzone do późniejszego wykorzystania

\N 0 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 \N f \N -2024-01-13 21:01:46.403267+00 2024-01-13 21:12:14.673097+00 b70638e8-d750-4fba-9641-efdf990cbbcf Lista potworów i walka z nimi ""

Każdy potwór posiada unikalny sposób ataku, unikalne miejsce występowania, unikalny sposób znajdowania go oraz unikalny sposób pokonania go.

Wilkołak

Występuje w lesie i w czasie pełni może zamieniać mieszkańców w nowe wilkołaki lub po prostu ich zabijać. Terror będzie bardzo szybko rósł w nocy w trakcie pełni oraz ilość pozyskiwania Zasobów spadnie o 20% za każdego Zauważonego Wilkołaka do minimum 5%.
Szybkość odszukania Wilkołaka zależy od poziomu Detektywa ponieważ jest on jednym z mieszkańców. W czasie dnia i w nocy poza pełnią usunięcie Wilkołaka następuje po jego wyśledzeniu jednak można wybrać aby go zabić albo zabić. W przykadku każdego wyboru Wilkołak może albo powrócić albo Terror zostanie zwiększony o niewielką wartość.

Kikimora

Zastawiwszy na zbłąkanego wędrowca pułapkę, napawała się jego agonią w przepastnych odmętach bagiennej topieli.

\N 0 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 \N f \N -\. - --- --- Data for Name: project_deploy_boards; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY project_deploy_boards (created_at, updated_at, id, anchor, comments, reactions, votes, views, created_by_id, inbox_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: project_favorites; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY project_favorites (created_at, updated_at, id, created_by_id, project_id, updated_by_id, user_id, workspace_id) FROM stdin; -2024-01-14 07:29:17.493343+00 2024-01-14 07:29:17.493358+00 c27e60d8-ff20-4763-911a-180f0932c620 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 -\. - --- --- Data for Name: project_identifiers; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY project_identifiers (id, created_at, updated_at, name, created_by_id, project_id, updated_by_id, workspace_id) FROM stdin; -1 2024-01-13 20:55:59.803031+00 2024-01-13 20:55:59.803047+00 OURNI \N cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 -\. - --- --- Data for Name: project_member_invites; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY project_member_invites (created_at, updated_at, id, email, accepted, token, message, responded_at, role, created_by_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: project_members; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY project_members (created_at, updated_at, id, comment, role, created_by_id, member_id, project_id, updated_by_id, workspace_id, view_props, default_props, sort_order, preferences, is_active) FROM stdin; -2024-01-13 20:55:59.81572+00 2024-01-14 09:19:16.982878+00 c8eda195-1acd-4d29-8593-934790ecd776 \N 20 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 {"filters": {"state": null, "labels": null, "project": null, "mentions": null, "priority": null, "assignees": null, "created_by": null, "start_date": null, "subscriber": null, "state_group": null, "target_date": null}, "display_filters": {"type": null, "layout": "list", "calendar": {"layout": "month", "show_weekends": false}, "group_by": "state", "order_by": "-created_at", "sub_issue": true, "sub_group_by": null, "show_empty_groups": true, "start_target_date": false}} {"filters": {"state": null, "labels": null, "priority": null, "assignees": null, "created_by": null, "start_date": null, "subscriber": null, "state_group": null, "target_date": null}, "display_filters": {"type": null, "layout": "list", "group_by": null, "order_by": "-created_at", "sub_issue": true, "show_empty_groups": true, "calendar_date_range": ""}} 65535 {"pages": {"block_display": true}} t -\. - --- --- Data for Name: project_public_members; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY project_public_members (created_at, updated_at, id, created_by_id, member_id, project_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: projects; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY projects (created_at, updated_at, id, name, description, description_text, description_html, network, identifier, created_by_id, default_assignee_id, project_lead_id, updated_by_id, workspace_id, emoji, cycle_view, module_view, cover_image, issue_views_view, page_view, estimate_id, icon_prop, inbox_view, archive_in, close_in, default_state_id) FROM stdin; -2024-01-13 20:55:59.798122+00 2024-01-13 20:55:59.798139+00 cad91ae3-a3a3-4651-be91-b485e8abde0e Our Nightmares \N \N 2 OURNI e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N \N e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 128077 t t https://images.unsplash.com/photo-1464925257126-6450e871c667?auto=format&fit=crop&q=80&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&w=870&q=80 t t \N \N f 0 0 \N -\. - --- --- Data for Name: slack_project_syncs; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY slack_project_syncs (created_at, updated_at, id, access_token, scopes, bot_user_id, webhook_url, data, team_id, team_name, created_by_id, project_id, updated_by_id, workspace_id, workspace_integration_id) FROM stdin; -\. - --- --- Data for Name: social_login_connections; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY social_login_connections (created_at, updated_at, id, medium, last_login_at, last_received_at, token_data, extra_data, created_by_id, updated_by_id, user_id) FROM stdin; -\. - --- --- Data for Name: states; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY states (created_at, updated_at, id, name, description, color, slug, created_by_id, project_id, updated_by_id, workspace_id, sequence, "group", "default", external_id, external_source) FROM stdin; -2024-01-13 20:55:59.826722+00 2024-01-13 20:55:59.826737+00 a41fbd68-643c-4e46-98e2-c87ff2c24cc0 Backlog #A3A3A3 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 15000 backlog t \N \N -2024-01-13 20:55:59.826776+00 2024-01-13 20:55:59.826781+00 97504fa7-01f4-4a89-b00e-3d85a39a7f6f Todo #3A3A3A e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 25000 unstarted f \N \N -2024-01-13 20:55:59.826806+00 2024-01-13 20:55:59.826811+00 85afd240-19f4-4272-a70d-e0275b8da021 In Progress #F59E0B e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 35000 started f \N \N -2024-01-13 20:55:59.826833+00 2024-01-13 20:55:59.826837+00 f0dc1092-2071-41cb-96e2-f2239a074931 Done #16A34A e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 45000 completed f \N \N -2024-01-13 20:55:59.82686+00 2024-01-13 20:55:59.826864+00 3e3a2200-15f5-4cd4-88a5-debc65189a15 Cancelled #EF4444 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cad91ae3-a3a3-4651-be91-b485e8abde0e \N 6f4b44e6-f588-4020-b1bf-a9218459cf67 55000 cancelled f \N \N -\. - --- --- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY team_members (created_at, updated_at, id, created_by_id, member_id, team_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY teams (created_at, updated_at, id, name, description, created_by_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: token_blacklist_blacklistedtoken; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY token_blacklist_blacklistedtoken (id, blacklisted_at, token_id) FROM stdin; -\. - --- --- Data for Name: token_blacklist_outstandingtoken; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY token_blacklist_outstandingtoken (id, token, created_at, expires_at, user_id, jti) FROM stdin; -1 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6NTQzNzY1OTI2OCwiaWF0IjoxNzA1MTc5MjY4LCJqdGkiOiI5MjNmODA0YmEyNjY0ZGRiODFmZDc2YjJiODA5MDNhYSIsInVzZXJfaWQiOiJlMWFhNGZjNC0zMjY5LTQ4NmQtOTc2MS1lMGIzZjNiZmJlNTIifQ.rAYL_aZzN8hq-zqAgGxkh35tAlZIF7ewXPg1Ide6WKk 2024-01-13 20:54:28.516105+00 2142-04-24 20:54:28+00 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 923f804ba2664ddb81fd76b2b80903aa -2 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6NTQzNzY5Njk0NiwiaWF0IjoxNzA1MjE2OTQ2LCJqdGkiOiJjYjk2OTY5NzJiZWQ0ZGNlYmIyMDVlY2Q1MzdmYTQ5MCIsInVzZXJfaWQiOiJlMWFhNGZjNC0zMjY5LTQ4NmQtOTc2MS1lMGIzZjNiZmJlNTIifQ.br_LEEpiP72FRDu0m4tZ0xn5Uo3dDrPZp3I4K5M73Fk 2024-01-14 07:22:26.999491+00 2142-04-25 07:22:26+00 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cb9696972bed4dcebb205ecd537fa490 -3 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6NTQzNzcwMzY4MCwiaWF0IjoxNzA1MjIzNjgwLCJqdGkiOiJjYzVhMDU0YzdjYjc0MzhkOGZkMDZhMWEyYWRmZTk0MiIsInVzZXJfaWQiOiJlMWFhNGZjNC0zMjY5LTQ4NmQtOTc2MS1lMGIzZjNiZmJlNTIifQ.OV41NA8n_jMMERZ1QqrzRSTl69foyaSCmG7RGIByi64 2024-01-14 09:14:40.377814+00 2142-04-25 09:14:40+00 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 cc5a054c7cb7438d8fd06a1a2adfe942 -4 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6NTQzNzc4NzkwNywiaWF0IjoxNzA1MzA3OTA3LCJqdGkiOiJjMTViZjM3YmZhOWM0MmFiOTVmMTIxZjhlYzM5MjdhZiIsInVzZXJfaWQiOiJlMWFhNGZjNC0zMjY5LTQ4NmQtOTc2MS1lMGIzZjNiZmJlNTIifQ._P8PopjRHF01lqfDXmQMTgHnxLp2GQOR13U6UIj9RmY 2024-01-15 08:38:27.12774+00 2142-04-26 08:38:27+00 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 c15bf37bfa9c42ab95f121f8ec3927af -\. - --- --- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY users (password, last_login, id, username, mobile_number, email, first_name, last_name, avatar, date_joined, created_at, updated_at, last_location, created_location, is_superuser, is_managed, is_password_expired, is_active, is_staff, is_email_verified, is_password_autoset, is_onboarded, token, billing_address_country, billing_address, has_billing_address, user_timezone, last_active, last_login_time, last_logout_time, last_login_ip, last_logout_ip, last_login_medium, last_login_uagent, token_updated_at, last_workspace_id, my_issues_prop, role, is_bot, theme, is_tour_completed, onboarding_step, cover_image, display_name, use_case) FROM stdin; -pbkdf2_sha256$600000$4iytorjkz7bRm9UoZdEZUa$MYRZo7QNoOH8yDnS20otATsPutGTo95Zc1r0LhUifg8= \N e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6496a0cdbe164f64a41d0254f43b93d6 \N adrian.wozniak@ita-prog.pl Adrian Woźniak 2024-01-13 20:54:28.49804+00 2024-01-13 20:54:28.498053+00 2024-01-15 08:38:27.10592+00 f f f t f f f t 3e385bdbe30a4098b7c21d738a98044fcfc7d03b1280491e8eb092ffb286f786 INDIA \N f Europe/Warsaw 2024-01-15 08:38:27.105759+00 2024-01-15 08:38:27.105765+00 \N 172.18.0.10 email Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0 2024-01-15 08:38:27.105813+00 6f4b44e6-f588-4020-b1bf-a9218459cf67 \N Founder / Executive f {} t {"workspace_join": true, "profile_complete": true, "workspace_create": true, "workspace_invite": true} \N Tsumanu Build Products -\. - --- --- Data for Name: users_groups; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY users_groups (id, user_id, group_id) FROM stdin; -\. - --- --- Data for Name: users_user_permissions; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY users_user_permissions (id, user_id, permission_id) FROM stdin; -\. - --- --- Data for Name: view_favorites; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY view_favorites (created_at, updated_at, id, created_by_id, project_id, updated_by_id, user_id, view_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: webhook_logs; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY webhook_logs (created_at, updated_at, id, event_type, request_method, request_headers, request_body, response_status, response_headers, response_body, retry_count, created_by_id, updated_by_id, webhook_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: webhooks; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY webhooks (created_at, updated_at, id, url, is_active, secret_key, project, issue, module, cycle, issue_comment, created_by_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: workspace_integrations; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY workspace_integrations (created_at, updated_at, id, metadata, config, actor_id, api_token_id, created_by_id, integration_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: workspace_member_invites; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY workspace_member_invites (created_at, updated_at, id, email, accepted, token, message, responded_at, role, created_by_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: workspace_members; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY workspace_members (created_at, updated_at, id, role, created_by_id, member_id, updated_by_id, workspace_id, company_role, view_props, default_props, issue_props, is_active) FROM stdin; -2024-01-13 20:55:28.262704+00 2024-01-13 20:55:28.262718+00 92e41188-af8e-4e62-a0ba-969006c9a002 20 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 6f4b44e6-f588-4020-b1bf-a9218459cf67 {"filters": {"state": null, "labels": null, "priority": null, "assignees": null, "created_by": null, "start_date": null, "subscriber": null, "state_group": null, "target_date": null}, "display_filters": {"type": null, "layout": "list", "group_by": null, "order_by": "-created_at", "sub_issue": true, "show_empty_groups": true, "calendar_date_range": ""}, "display_properties": {"key": true, "link": true, "state": true, "labels": true, "assignee": true, "due_date": true, "estimate": true, "priority": true, "created_on": true, "start_date": true, "updated_on": true, "sub_issue_count": true, "attachment_count": true}} {"filters": {"state": null, "labels": null, "priority": null, "assignees": null, "created_by": null, "start_date": null, "subscriber": null, "state_group": null, "target_date": null}, "display_filters": {"type": null, "layout": "list", "group_by": null, "order_by": "-created_at", "sub_issue": true, "show_empty_groups": true, "calendar_date_range": ""}, "display_properties": {"key": true, "link": true, "state": true, "labels": true, "assignee": true, "due_date": true, "estimate": true, "priority": true, "created_on": true, "start_date": true, "updated_on": true, "sub_issue_count": true, "attachment_count": true}} {"created": true, "assigned": true, "all_issues": true, "subscribed": true} t -\. - --- --- Data for Name: workspace_themes; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY workspace_themes (created_at, updated_at, id, name, colors, actor_id, created_by_id, updated_by_id, workspace_id) FROM stdin; -\. - --- --- Data for Name: workspaces; Type: TABLE DATA; Schema: public; Owner: plane --- - -COPY workspaces (created_at, updated_at, id, name, logo, slug, created_by_id, owner_id, updated_by_id, organization_size) FROM stdin; -2024-01-13 20:55:28.258284+00 2024-01-13 20:55:28.258302+00 6f4b44e6-f588-4020-b1bf-a9218459cf67 Our Nightmares \N our-nightmares e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 e1aa4fc4-3269-486d-9761-e0b3f3bfbe52 \N -\. - --- --- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.auth_group_id_seq', 1, false); --- --- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.auth_group_permissions_id_seq', 1, false); --- --- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.auth_permission_id_seq', 344, true); --- --- Name: django_celery_beat_clockedschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.django_celery_beat_clockedschedule_id_seq', 1, false); --- --- Name: django_celery_beat_crontabschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.django_celery_beat_crontabschedule_id_seq', 2, true); --- --- Name: django_celery_beat_intervalschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.django_celery_beat_intervalschedule_id_seq', 1, false); --- --- Name: django_celery_beat_periodictask_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.django_celery_beat_periodictask_id_seq', 4, true); --- --- Name: django_celery_beat_solarschedule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.django_celery_beat_solarschedule_id_seq', 1, false); --- --- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.django_content_type_id_seq', 86, true); --- --- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.django_migrations_id_seq', 101, true); --- --- Name: project_identifier_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.project_identifier_id_seq', 1, true); --- --- Name: token_blacklist_blacklistedtoken_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.token_blacklist_blacklistedtoken_id_seq', 1, false); --- --- Name: token_blacklist_outstandingtoken_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.token_blacklist_outstandingtoken_id_seq', 4, true); --- --- Name: user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.user_groups_id_seq', 1, false); --- --- Name: user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: plane --- - -SELECT pg_catalog.setval('public.user_user_permissions_id_seq', 1, false); --- --- Name: analytic_views analytic_views_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY analytic_views - ADD CONSTRAINT analytic_views_pkey PRIMARY KEY (id); --- --- Name: api_activity_logs api_activity_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY api_activity_logs - ADD CONSTRAINT api_activity_logs_pkey PRIMARY KEY (id); --- --- Name: api_tokens api_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY api_tokens - ADD CONSTRAINT api_tokens_pkey PRIMARY KEY (id); --- --- Name: api_tokens api_tokens_token_key; Type: CONSTRAINT; Schema: public; Owner: plane --- - ALTER TABLE ONLY api_tokens ADD CONSTRAINT api_tokens_token_key UNIQUE (token); -- @@ -3042,35 +1832,8 @@ ALTER TABLE ONLY auth_group_permissions -- Name: auth_group_permissions auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY auth_group_permissions - ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id); --- --- Name: auth_group auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY auth_group - ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id); --- --- Name: auth_permission auth_permission_content_type_id_codename_01ab375a_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- - ALTER TABLE ONLY auth_permission ADD CONSTRAINT auth_permission_content_type_id_codename_01ab375a_uniq UNIQUE (content_type_id, codename); --- --- Name: auth_permission auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY auth_permission - ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id); --- --- Name: authtoken_token authtoken_token_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY authtoken_token - ADD CONSTRAINT authtoken_token_pkey PRIMARY KEY (key); --- --- Name: authtoken_token authtoken_token_user_id_key; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY authtoken_token ADD CONSTRAINT authtoken_token_user_id_key UNIQUE (user_id); @@ -3080,645 +1843,122 @@ ALTER TABLE ONLY authtoken_token ALTER TABLE ONLY comment_reactions ADD CONSTRAINT comment_reactions_comment_id_actor_id_reaction_523d21ad_uniq UNIQUE (comment_id, actor_id, reaction); --- --- Name: comment_reactions comment_reactions_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY comment_reactions - ADD CONSTRAINT comment_reactions_pkey PRIMARY KEY (id); --- --- Name: cycle_favorites cycle_favorites_cycle_id_user_id_51c1ab91_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY cycle_favorites ADD CONSTRAINT cycle_favorites_cycle_id_user_id_51c1ab91_uniq UNIQUE (cycle_id, user_id); --- --- Name: cycle_favorites cycle_favorites_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY cycle_favorites - ADD CONSTRAINT cycle_favorites_pkey PRIMARY KEY (id); --- --- Name: cycle_issues cycle_issue_issue_id_fd06e284_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY cycle_issues ADD CONSTRAINT cycle_issue_issue_id_fd06e284_uniq UNIQUE (issue_id); --- --- Name: cycle_issues cycle_issue_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY cycle_issues - ADD CONSTRAINT cycle_issue_pkey PRIMARY KEY (id); --- --- Name: cycles cycle_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY cycles - ADD CONSTRAINT cycle_pkey PRIMARY KEY (id); --- --- Name: django_celery_beat_clockedschedule django_celery_beat_clockedschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_celery_beat_clockedschedule - ADD CONSTRAINT django_celery_beat_clockedschedule_pkey PRIMARY KEY (id); --- --- Name: django_celery_beat_crontabschedule django_celery_beat_crontabschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_celery_beat_crontabschedule - ADD CONSTRAINT django_celery_beat_crontabschedule_pkey PRIMARY KEY (id); --- --- Name: django_celery_beat_intervalschedule django_celery_beat_intervalschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_celery_beat_intervalschedule - ADD CONSTRAINT django_celery_beat_intervalschedule_pkey PRIMARY KEY (id); --- --- Name: django_celery_beat_periodictask django_celery_beat_periodictask_name_key; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_celery_beat_periodictask - ADD CONSTRAINT django_celery_beat_periodictask_name_key UNIQUE (name); --- --- Name: django_celery_beat_periodictask django_celery_beat_periodictask_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_celery_beat_periodictask - ADD CONSTRAINT django_celery_beat_periodictask_pkey PRIMARY KEY (id); --- --- Name: django_celery_beat_periodictasks django_celery_beat_periodictasks_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_celery_beat_periodictasks - ADD CONSTRAINT django_celery_beat_periodictasks_pkey PRIMARY KEY (ident); --- --- Name: django_celery_beat_solarschedule django_celery_beat_solar_event_latitude_longitude_ba64999a_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY django_celery_beat_solarschedule ADD CONSTRAINT django_celery_beat_solar_event_latitude_longitude_ba64999a_uniq UNIQUE (event, latitude, longitude); --- --- Name: django_celery_beat_solarschedule django_celery_beat_solarschedule_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_celery_beat_solarschedule - ADD CONSTRAINT django_celery_beat_solarschedule_pkey PRIMARY KEY (id); --- --- Name: django_content_type django_content_type_app_label_model_76bd3d3b_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY django_content_type ADD CONSTRAINT django_content_type_app_label_model_76bd3d3b_uniq UNIQUE (app_label, model); --- --- Name: django_content_type django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_content_type - ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id); --- --- Name: django_migrations django_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_migrations - ADD CONSTRAINT django_migrations_pkey PRIMARY KEY (id); --- --- Name: django_session django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY django_session - ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key); --- --- Name: estimate_points estimate_points_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY estimate_points - ADD CONSTRAINT estimate_points_pkey PRIMARY KEY (id); --- --- Name: estimates estimates_name_project_id_2b42c12c_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY estimates ADD CONSTRAINT estimates_name_project_id_2b42c12c_uniq UNIQUE (name, project_id); --- --- Name: estimates estimates_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY estimates - ADD CONSTRAINT estimates_pkey PRIMARY KEY (id); --- --- Name: exporters exporters_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY exporters - ADD CONSTRAINT exporters_pkey PRIMARY KEY (id); --- --- Name: exporters exporters_token_key; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY exporters ADD CONSTRAINT exporters_token_key UNIQUE (token); --- --- Name: file_assets file_asset_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY file_assets - ADD CONSTRAINT file_asset_pkey PRIMARY KEY (id); --- --- Name: github_comment_syncs github_comment_syncs_issue_sync_id_comment_id_38c82e7b_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY github_comment_syncs ADD CONSTRAINT github_comment_syncs_issue_sync_id_comment_id_38c82e7b_uniq UNIQUE (issue_sync_id, comment_id); --- --- Name: github_comment_syncs github_comment_syncs_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY github_comment_syncs - ADD CONSTRAINT github_comment_syncs_pkey PRIMARY KEY (id); --- --- Name: github_issue_syncs github_issue_syncs_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY github_issue_syncs - ADD CONSTRAINT github_issue_syncs_pkey PRIMARY KEY (id); --- --- Name: github_issue_syncs github_issue_syncs_repository_sync_id_issue_id_4b34427e_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY github_issue_syncs ADD CONSTRAINT github_issue_syncs_repository_sync_id_issue_id_4b34427e_uniq UNIQUE (repository_sync_id, issue_id); --- --- Name: github_repositories github_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY github_repositories - ADD CONSTRAINT github_repositories_pkey PRIMARY KEY (id); --- --- Name: github_repository_syncs github_repository_syncs_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY github_repository_syncs - ADD CONSTRAINT github_repository_syncs_pkey PRIMARY KEY (id); --- --- Name: github_repository_syncs github_repository_syncs_project_id_repository_id_0f3705e6_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY github_repository_syncs ADD CONSTRAINT github_repository_syncs_project_id_repository_id_0f3705e6_uniq UNIQUE (project_id, repository_id); --- --- Name: github_repository_syncs github_repository_syncs_repository_id_key; Type: CONSTRAINT; Schema: public; Owner: plane --- - ALTER TABLE ONLY github_repository_syncs ADD CONSTRAINT github_repository_syncs_repository_id_key UNIQUE (repository_id); --- --- Name: global_views global_views_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY global_views - ADD CONSTRAINT global_views_pkey PRIMARY KEY (id); --- --- Name: importers importers_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY importers - ADD CONSTRAINT importers_pkey PRIMARY KEY (id); --- --- Name: inbox_issues inbox_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY inbox_issues - ADD CONSTRAINT inbox_issues_pkey PRIMARY KEY (id); --- --- Name: inboxes inboxes_name_project_id_daf38984_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY inboxes ADD CONSTRAINT inboxes_name_project_id_daf38984_uniq UNIQUE (name, project_id); --- --- Name: inboxes inboxes_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY inboxes - ADD CONSTRAINT inboxes_pkey PRIMARY KEY (id); --- --- Name: instance_admins instance_admins_instance_id_user_id_2e80a466_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY instance_admins ADD CONSTRAINT instance_admins_instance_id_user_id_2e80a466_uniq UNIQUE (instance_id, user_id); --- --- Name: instance_admins instance_admins_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY instance_admins - ADD CONSTRAINT instance_admins_pkey PRIMARY KEY (id); --- --- Name: instance_configurations instance_configurations_key_key; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY instance_configurations ADD CONSTRAINT instance_configurations_key_key UNIQUE (key); --- --- Name: instance_configurations instance_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY instance_configurations - ADD CONSTRAINT instance_configurations_pkey PRIMARY KEY (id); --- --- Name: instances instances_instance_id_key; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY instances ADD CONSTRAINT instances_instance_id_key UNIQUE (instance_id); --- --- Name: instances instances_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY instances - ADD CONSTRAINT instances_pkey PRIMARY KEY (id); --- --- Name: integrations integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY integrations - ADD CONSTRAINT integrations_pkey PRIMARY KEY (id); --- --- Name: integrations integrations_provider_key; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY integrations ADD CONSTRAINT integrations_provider_key UNIQUE (provider); --- --- Name: issue_activities issue_activity_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_activities - ADD CONSTRAINT issue_activity_pkey PRIMARY KEY (id); --- --- Name: issue_assignees issue_assignee_issue_id_assignee_id_4ee260b4_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY issue_assignees ADD CONSTRAINT issue_assignee_issue_id_assignee_id_4ee260b4_uniq UNIQUE (issue_id, assignee_id); --- --- Name: issue_assignees issue_assignee_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT issue_assignee_pkey PRIMARY KEY (id); --- --- Name: issue_attachments issue_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_attachments - ADD CONSTRAINT issue_attachments_pkey PRIMARY KEY (id); --- --- Name: issue_blockers issue_blocker_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_blockers - ADD CONSTRAINT issue_blocker_pkey PRIMARY KEY (id); --- --- Name: issue_comments issue_comment_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_comments - ADD CONSTRAINT issue_comment_pkey PRIMARY KEY (id); --- --- Name: issue_labels issue_label_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_labels - ADD CONSTRAINT issue_label_pkey PRIMARY KEY (id); --- --- Name: issue_links issue_links_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_links - ADD CONSTRAINT issue_links_pkey PRIMARY KEY (id); --- --- Name: issue_mentions issue_mentions_issue_id_mention_id_ce91a005_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY issue_mentions ADD CONSTRAINT issue_mentions_issue_id_mention_id_ce91a005_uniq UNIQUE (issue_id, mention_id); --- --- Name: issue_mentions issue_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_mentions - ADD CONSTRAINT issue_mentions_pkey PRIMARY KEY (id); --- --- Name: issues issue_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issues - ADD CONSTRAINT issue_pkey PRIMARY KEY (id); --- --- Name: issue_properties issue_property_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_properties - ADD CONSTRAINT issue_property_pkey PRIMARY KEY (id); --- --- Name: issue_properties issue_property_user_id_project_id_fe52668f_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY issue_properties ADD CONSTRAINT issue_property_user_id_project_id_fe52668f_uniq UNIQUE (user_id, project_id); --- --- Name: issue_reactions issue_reactions_issue_id_actor_id_reaction_4751a642_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY issue_reactions ADD CONSTRAINT issue_reactions_issue_id_actor_id_reaction_4751a642_uniq UNIQUE (issue_id, actor_id, reaction); --- --- Name: issue_reactions issue_reactions_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_reactions - ADD CONSTRAINT issue_reactions_pkey PRIMARY KEY (id); --- --- Name: issue_relations issue_relations_issue_id_related_issue_id_640e8062_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY issue_relations ADD CONSTRAINT issue_relations_issue_id_related_issue_id_640e8062_uniq UNIQUE (issue_id, related_issue_id); --- --- Name: issue_relations issue_relations_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_relations - ADD CONSTRAINT issue_relations_pkey PRIMARY KEY (id); --- --- Name: issue_sequences issue_sequence_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_sequences - ADD CONSTRAINT issue_sequence_pkey PRIMARY KEY (id); --- --- Name: issue_subscribers issue_subscribers_issue_id_subscriber_id_5038c5f8_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY issue_subscribers ADD CONSTRAINT issue_subscribers_issue_id_subscriber_id_5038c5f8_uniq UNIQUE (issue_id, subscriber_id); --- --- Name: issue_subscribers issue_subscribers_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_subscribers - ADD CONSTRAINT issue_subscribers_pkey PRIMARY KEY (id); --- --- Name: issue_views issue_views_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_views - ADD CONSTRAINT issue_views_pkey PRIMARY KEY (id); --- --- Name: issue_votes issue_votes_issue_id_actor_id_086954ee_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY issue_votes ADD CONSTRAINT issue_votes_issue_id_actor_id_086954ee_uniq UNIQUE (issue_id, actor_id); --- --- Name: issue_votes issue_votes_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY issue_votes - ADD CONSTRAINT issue_votes_pkey PRIMARY KEY (id); --- --- Name: labels label_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY labels - ADD CONSTRAINT label_pkey PRIMARY KEY (id); --- --- Name: labels labels_name_project_id_d8b1b810_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY labels ADD CONSTRAINT labels_name_project_id_d8b1b810_uniq UNIQUE (name, project_id); --- --- Name: module_favorites module_favorites_module_id_user_id_5b36ecc1_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY module_favorites ADD CONSTRAINT module_favorites_module_id_user_id_5b36ecc1_uniq UNIQUE (module_id, user_id); --- --- Name: module_favorites module_favorites_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY module_favorites - ADD CONSTRAINT module_favorites_pkey PRIMARY KEY (id); --- --- Name: module_issues module_issues_issue_id_7caa908b_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY module_issues ADD CONSTRAINT module_issues_issue_id_7caa908b_uniq UNIQUE (issue_id); --- --- Name: module_issues module_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY module_issues - ADD CONSTRAINT module_issues_pkey PRIMARY KEY (id); --- --- Name: module_links module_links_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY module_links - ADD CONSTRAINT module_links_pkey PRIMARY KEY (id); --- --- Name: module_members module_member_module_id_member_id_1421c56c_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY module_members ADD CONSTRAINT module_member_module_id_member_id_1421c56c_uniq UNIQUE (module_id, member_id); --- --- Name: module_members module_member_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY module_members - ADD CONSTRAINT module_member_pkey PRIMARY KEY (id); --- --- Name: modules module_name_project_id_c730d437_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY modules ADD CONSTRAINT module_name_project_id_c730d437_uniq UNIQUE (name, project_id); --- --- Name: modules module_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY modules - ADD CONSTRAINT module_pkey PRIMARY KEY (id); --- --- Name: notifications notifications_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY notifications - ADD CONSTRAINT notifications_pkey PRIMARY KEY (id); --- --- Name: page_blocks page_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY page_blocks - ADD CONSTRAINT page_blocks_pkey PRIMARY KEY (id); --- --- Name: page_favorites page_favorites_page_id_user_id_6e2c24ba_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY page_favorites ADD CONSTRAINT page_favorites_page_id_user_id_6e2c24ba_uniq UNIQUE (page_id, user_id); --- --- Name: page_favorites page_favorites_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY page_favorites - ADD CONSTRAINT page_favorites_pkey PRIMARY KEY (id); --- --- Name: page_labels page_labels_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY page_labels - ADD CONSTRAINT page_labels_pkey PRIMARY KEY (id); --- --- Name: page_logs page_logs_page_id_transaction_9ab05334_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY page_logs ADD CONSTRAINT page_logs_page_id_transaction_9ab05334_uniq UNIQUE (page_id, transaction); --- --- Name: page_logs page_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY page_logs - ADD CONSTRAINT page_logs_pkey PRIMARY KEY (id); --- --- Name: pages pages_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY pages - ADD CONSTRAINT pages_pkey PRIMARY KEY (id); --- --- Name: project_deploy_boards project_deploy_boards_anchor_key; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY project_deploy_boards ADD CONSTRAINT project_deploy_boards_anchor_key UNIQUE (anchor); --- --- Name: project_deploy_boards project_deploy_boards_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY project_deploy_boards - ADD CONSTRAINT project_deploy_boards_pkey PRIMARY KEY (id); --- --- Name: project_deploy_boards project_deploy_boards_project_id_anchor_893d365a_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY project_deploy_boards ADD CONSTRAINT project_deploy_boards_project_id_anchor_893d365a_uniq UNIQUE (project_id, anchor); --- --- Name: project_favorites project_favorites_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY project_favorites - ADD CONSTRAINT project_favorites_pkey PRIMARY KEY (id); --- --- Name: project_favorites project_favorites_project_id_user_id_e7e43312_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY project_favorites ADD CONSTRAINT project_favorites_project_id_user_id_e7e43312_uniq UNIQUE (project_id, user_id); --- --- Name: project_identifiers project_identifier_name_workspace_id_4b7404cb_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY project_identifiers ADD CONSTRAINT project_identifier_name_workspace_id_4b7404cb_uniq UNIQUE (name, workspace_id); --- --- Name: project_identifiers project_identifier_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY project_identifiers - ADD CONSTRAINT project_identifier_pkey PRIMARY KEY (id); --- --- Name: project_identifiers project_identifier_project_id_key; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY project_identifiers ADD CONSTRAINT project_identifier_project_id_key UNIQUE (project_id); --- --- Name: projects project_identifier_workspace_id_35e9a4bf_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY projects ADD CONSTRAINT project_identifier_workspace_id_35e9a4bf_uniq UNIQUE (identifier, workspace_id); --- --- Name: project_member_invites project_member_invite_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY project_member_invites - ADD CONSTRAINT project_member_invite_pkey PRIMARY KEY (id); --- --- Name: project_members project_member_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY project_members - ADD CONSTRAINT project_member_pkey PRIMARY KEY (id); --- --- Name: project_members project_member_project_id_member_id_9489e47c_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY project_members ADD CONSTRAINT project_member_project_id_member_id_9489e47c_uniq UNIQUE (project_id, member_id); --- --- Name: projects project_name_workspace_id_e858a38f_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY projects ADD CONSTRAINT project_name_workspace_id_e858a38f_uniq UNIQUE (name, workspace_id); --- --- Name: projects project_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY projects - ADD CONSTRAINT project_pkey PRIMARY KEY (id); --- --- Name: project_public_members project_public_members_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY project_public_members - ADD CONSTRAINT project_public_members_pkey PRIMARY KEY (id); --- --- Name: project_public_members project_public_members_project_id_member_id_51cd09a4_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY project_public_members ADD CONSTRAINT project_public_members_project_id_member_id_51cd09a4_uniq UNIQUE (project_id, member_id); --- --- Name: slack_project_syncs slack_project_syncs_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY slack_project_syncs - ADD CONSTRAINT slack_project_syncs_pkey PRIMARY KEY (id); --- --- Name: slack_project_syncs slack_project_syncs_team_id_project_id_50a144a7_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY slack_project_syncs ADD CONSTRAINT slack_project_syncs_team_id_project_id_50a144a7_uniq UNIQUE (team_id, project_id); --- --- Name: social_login_connections social_login_connection_pkey; Type: CONSTRAINT; Schema: public; Owner: plane --- - -ALTER TABLE ONLY social_login_connections - ADD CONSTRAINT social_login_connection_pkey PRIMARY KEY (id); --- --- Name: states state_name_project_id_89897f31_uniq; Type: CONSTRAINT; Schema: public; Owner: plane --- ALTER TABLE ONLY states ADD CONSTRAINT state_name_project_id_89897f31_uniq UNIQUE (name, project_id); @@ -3726,14 +1966,12 @@ ALTER TABLE ONLY states -- Name: states state_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY states - ADD CONSTRAINT state_pkey PRIMARY KEY (id); + -- -- Name: team_members team_member_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY team_members - ADD CONSTRAINT team_member_pkey PRIMARY KEY (id); + -- -- Name: team_members team_member_team_id_member_id_d0325b97_uniq; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3750,14 +1988,12 @@ ALTER TABLE ONLY teams -- Name: teams team_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY teams - ADD CONSTRAINT team_pkey PRIMARY KEY (id); + -- -- Name: token_blacklist_blacklistedtoken token_blacklist_blacklistedtoken_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY token_blacklist_blacklistedtoken - ADD CONSTRAINT token_blacklist_blacklistedtoken_pkey PRIMARY KEY (id); + -- -- Name: token_blacklist_blacklistedtoken token_blacklist_blacklistedtoken_token_id_key; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3774,8 +2010,7 @@ ALTER TABLE ONLY token_blacklist_outstandingtoken -- Name: token_blacklist_outstandingtoken token_blacklist_outstandingtoken_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY token_blacklist_outstandingtoken - ADD CONSTRAINT token_blacklist_outstandingtoken_pkey PRIMARY KEY (id); + -- -- Name: users user_email_key; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3786,8 +2021,7 @@ ALTER TABLE ONLY users -- Name: users_groups user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY users_groups - ADD CONSTRAINT user_groups_pkey PRIMARY KEY (id); + -- -- Name: users_groups user_groups_user_id_group_id_40beef00_uniq; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3798,14 +2032,12 @@ ALTER TABLE ONLY users_groups -- Name: users user_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY users - ADD CONSTRAINT user_pkey PRIMARY KEY (id); + -- -- Name: users_user_permissions user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY users_user_permissions - ADD CONSTRAINT user_user_permissions_pkey PRIMARY KEY (id); + -- -- Name: users_user_permissions user_user_permissions_user_id_permission_id_7dc6e2e0_uniq; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3822,8 +2054,7 @@ ALTER TABLE ONLY users -- Name: view_favorites view_favorites_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY view_favorites - ADD CONSTRAINT view_favorites_pkey PRIMARY KEY (id); + -- -- Name: view_favorites view_favorites_view_id_user_id_3f287788_uniq; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3834,14 +2065,12 @@ ALTER TABLE ONLY view_favorites -- Name: webhook_logs webhook_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY webhook_logs - ADD CONSTRAINT webhook_logs_pkey PRIMARY KEY (id); + -- -- Name: webhooks webhooks_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY webhooks - ADD CONSTRAINT webhooks_pkey PRIMARY KEY (id); + -- -- Name: webhooks webhooks_workspace_id_url_9e8012ba_uniq; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3852,8 +2081,7 @@ ALTER TABLE ONLY webhooks -- Name: workspace_integrations workspace_integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY workspace_integrations - ADD CONSTRAINT workspace_integrations_pkey PRIMARY KEY (id); + -- -- Name: workspace_integrations workspace_integrations_workspace_id_integration_fa041c22_uniq; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3864,8 +2092,7 @@ ALTER TABLE ONLY workspace_integrations -- Name: workspace_member_invites workspace_member_invite_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY workspace_member_invites - ADD CONSTRAINT workspace_member_invite_pkey PRIMARY KEY (id); + -- -- Name: workspace_member_invites workspace_member_invites_email_workspace_id_9d830009_uniq; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3876,8 +2103,7 @@ ALTER TABLE ONLY workspace_member_invites -- Name: workspace_members workspace_member_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY workspace_members - ADD CONSTRAINT workspace_member_pkey PRIMARY KEY (id); + -- -- Name: workspace_members workspace_member_workspace_id_member_id_2b61b0e8_uniq; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3888,8 +2114,7 @@ ALTER TABLE ONLY workspace_members -- Name: workspaces workspace_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY workspaces - ADD CONSTRAINT workspace_pkey PRIMARY KEY (id); + -- -- Name: workspaces workspace_slug_key; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -3900,8 +2125,7 @@ ALTER TABLE ONLY workspaces -- Name: workspace_themes workspace_themes_pkey; Type: CONSTRAINT; Schema: public; Owner: plane -- -ALTER TABLE ONLY workspace_themes - ADD CONSTRAINT workspace_themes_pkey PRIMARY KEY (id); + -- -- Name: workspace_themes workspace_themes_workspace_id_name_500d4836_uniq; Type: CONSTRAINT; Schema: public; Owner: plane -- @@ -5783,2543 +4007,2539 @@ CREATE INDEX workspace_updated_by_id_09d249ed ON workspaces USING btree (updated -- ALTER TABLE ONLY analytic_views - ADD CONSTRAINT analytic_views_created_by_id_1b3ca0a9_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT analytic_views_created_by_id_1b3ca0a9_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: analytic_views analytic_views_updated_by_id_b6d827e1_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY analytic_views - ADD CONSTRAINT analytic_views_updated_by_id_b6d827e1_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT analytic_views_updated_by_id_b6d827e1_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: analytic_views analytic_views_workspace_id_ca6e5c0b_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY analytic_views - ADD CONSTRAINT analytic_views_workspace_id_ca6e5c0b_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT analytic_views_workspace_id_ca6e5c0b_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: api_activity_logs api_activity_logs_created_by_id_7f5c4ca8_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY api_activity_logs - ADD CONSTRAINT api_activity_logs_created_by_id_7f5c4ca8_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT api_activity_logs_created_by_id_7f5c4ca8_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: api_activity_logs api_activity_logs_updated_by_id_9ba0d417_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY api_activity_logs - ADD CONSTRAINT api_activity_logs_updated_by_id_9ba0d417_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT api_activity_logs_updated_by_id_9ba0d417_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: api_tokens api_tokens_created_by_id_441e3d24_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY api_tokens - ADD CONSTRAINT api_tokens_created_by_id_441e3d24_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT api_tokens_created_by_id_441e3d24_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: api_tokens api_tokens_updated_by_id_bcd544cf_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY api_tokens - ADD CONSTRAINT api_tokens_updated_by_id_bcd544cf_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT api_tokens_updated_by_id_bcd544cf_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: api_tokens api_tokens_user_id_2db24e1c_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY api_tokens - ADD CONSTRAINT api_tokens_user_id_2db24e1c_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT api_tokens_user_id_2db24e1c_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: api_tokens api_tokens_workspace_id_6791c7bd_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY api_tokens - ADD CONSTRAINT api_tokens_workspace_id_6791c7bd_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT api_tokens_workspace_id_6791c7bd_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: auth_group_permissions auth_group_permissio_permission_id_84c5c92e_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY auth_group_permissions - ADD CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES auth_permission(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES auth_permission(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: auth_group_permissions auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY auth_group_permissions - ADD CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES auth_group(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES auth_group(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: auth_permission auth_permission_content_type_id_2f476e4b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY auth_permission - ADD CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: authtoken_token authtoken_token_user_id_35299eff_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY authtoken_token - ADD CONSTRAINT authtoken_token_user_id_35299eff_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT authtoken_token_user_id_35299eff_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: comment_reactions comment_reactions_actor_id_21219e9c_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY comment_reactions - ADD CONSTRAINT comment_reactions_actor_id_21219e9c_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT comment_reactions_actor_id_21219e9c_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: comment_reactions comment_reactions_comment_id_87c59446_fk_issue_comments_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY comment_reactions - ADD CONSTRAINT comment_reactions_comment_id_87c59446_fk_issue_comments_id FOREIGN KEY (comment_id) REFERENCES issue_comments(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT comment_reactions_comment_id_87c59446_fk_issue_comments_id FOREIGN KEY (comment_id) REFERENCES issue_comments(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: comment_reactions comment_reactions_created_by_id_9aeb43c4_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY comment_reactions - ADD CONSTRAINT comment_reactions_created_by_id_9aeb43c4_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT comment_reactions_created_by_id_9aeb43c4_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: comment_reactions comment_reactions_project_id_ab9114b4_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY comment_reactions - ADD CONSTRAINT comment_reactions_project_id_ab9114b4_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT comment_reactions_project_id_ab9114b4_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: comment_reactions comment_reactions_updated_by_id_c74c9bbd_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY comment_reactions - ADD CONSTRAINT comment_reactions_updated_by_id_c74c9bbd_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT comment_reactions_updated_by_id_c74c9bbd_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: comment_reactions comment_reactions_workspace_id_b614ca4f_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY comment_reactions - ADD CONSTRAINT comment_reactions_workspace_id_b614ca4f_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT comment_reactions_workspace_id_b614ca4f_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycles cycle_created_by_id_78e43b79_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycles - ADD CONSTRAINT cycle_created_by_id_78e43b79_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_created_by_id_78e43b79_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_favorites cycle_favorites_created_by_id_e888870b_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_favorites - ADD CONSTRAINT cycle_favorites_created_by_id_e888870b_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_favorites_created_by_id_e888870b_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_favorites cycle_favorites_cycle_id_8224e5ad_fk_cycles_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_favorites - ADD CONSTRAINT cycle_favorites_cycle_id_8224e5ad_fk_cycles_id FOREIGN KEY (cycle_id) REFERENCES cycles(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_favorites_cycle_id_8224e5ad_fk_cycles_id FOREIGN KEY (cycle_id) REFERENCES cycles(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_favorites cycle_favorites_project_id_f2977b66_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_favorites - ADD CONSTRAINT cycle_favorites_project_id_f2977b66_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_favorites_project_id_f2977b66_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_favorites cycle_favorites_updated_by_id_8576232f_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_favorites - ADD CONSTRAINT cycle_favorites_updated_by_id_8576232f_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_favorites_updated_by_id_8576232f_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_favorites cycle_favorites_user_id_8a04268d_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_favorites - ADD CONSTRAINT cycle_favorites_user_id_8a04268d_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_favorites_user_id_8a04268d_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_favorites cycle_favorites_workspace_id_07359b0b_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_favorites - ADD CONSTRAINT cycle_favorites_workspace_id_07359b0b_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_favorites_workspace_id_07359b0b_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_issues cycle_issue_created_by_id_30b27539_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_issues - ADD CONSTRAINT cycle_issue_created_by_id_30b27539_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_issue_created_by_id_30b27539_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_issues cycle_issue_cycle_id_ec681215_fk_cycle_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_issues - ADD CONSTRAINT cycle_issue_cycle_id_ec681215_fk_cycle_id FOREIGN KEY (cycle_id) REFERENCES cycles(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_issue_cycle_id_ec681215_fk_cycle_id FOREIGN KEY (cycle_id) REFERENCES cycles(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_issues cycle_issue_issue_id_fd06e284_fk_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_issues - ADD CONSTRAINT cycle_issue_issue_id_fd06e284_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_issue_issue_id_fd06e284_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_issues cycle_issue_project_id_6ad3257a_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_issues - ADD CONSTRAINT cycle_issue_project_id_6ad3257a_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_issue_project_id_6ad3257a_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_issues cycle_issue_updated_by_id_cb4516f2_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_issues - ADD CONSTRAINT cycle_issue_updated_by_id_cb4516f2_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_issue_updated_by_id_cb4516f2_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycle_issues cycle_issue_workspace_id_1d77330e_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycle_issues - ADD CONSTRAINT cycle_issue_workspace_id_1d77330e_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_issue_workspace_id_1d77330e_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycles cycle_owned_by_id_5456a4d1_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycles - ADD CONSTRAINT cycle_owned_by_id_5456a4d1_fk_user_id FOREIGN KEY (owned_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_owned_by_id_5456a4d1_fk_user_id FOREIGN KEY (owned_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycles cycle_project_id_0b590349_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycles - ADD CONSTRAINT cycle_project_id_0b590349_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_project_id_0b590349_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycles cycle_updated_by_id_93baee43_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycles - ADD CONSTRAINT cycle_updated_by_id_93baee43_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_updated_by_id_93baee43_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: cycles cycle_workspace_id_a199e8e1_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY cycles - ADD CONSTRAINT cycle_workspace_id_a199e8e1_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT cycle_workspace_id_a199e8e1_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: django_celery_beat_periodictask django_celery_beat_p_clocked_id_47a69f82_fk_django_ce; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY django_celery_beat_periodictask - ADD CONSTRAINT django_celery_beat_p_clocked_id_47a69f82_fk_django_ce FOREIGN KEY (clocked_id) REFERENCES django_celery_beat_clockedschedule(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT django_celery_beat_p_clocked_id_47a69f82_fk_django_ce FOREIGN KEY (clocked_id) REFERENCES django_celery_beat_clockedschedule(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: django_celery_beat_periodictask django_celery_beat_p_crontab_id_d3cba168_fk_django_ce; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY django_celery_beat_periodictask - ADD CONSTRAINT django_celery_beat_p_crontab_id_d3cba168_fk_django_ce FOREIGN KEY (crontab_id) REFERENCES django_celery_beat_crontabschedule(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT django_celery_beat_p_crontab_id_d3cba168_fk_django_ce FOREIGN KEY (crontab_id) REFERENCES django_celery_beat_crontabschedule(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: django_celery_beat_periodictask django_celery_beat_p_interval_id_a8ca27da_fk_django_ce; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY django_celery_beat_periodictask - ADD CONSTRAINT django_celery_beat_p_interval_id_a8ca27da_fk_django_ce FOREIGN KEY (interval_id) REFERENCES django_celery_beat_intervalschedule(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT django_celery_beat_p_interval_id_a8ca27da_fk_django_ce FOREIGN KEY (interval_id) REFERENCES django_celery_beat_intervalschedule(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: django_celery_beat_periodictask django_celery_beat_p_solar_id_a87ce72c_fk_django_ce; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY django_celery_beat_periodictask - ADD CONSTRAINT django_celery_beat_p_solar_id_a87ce72c_fk_django_ce FOREIGN KEY (solar_id) REFERENCES django_celery_beat_solarschedule(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT django_celery_beat_p_solar_id_a87ce72c_fk_django_ce FOREIGN KEY (solar_id) REFERENCES django_celery_beat_solarschedule(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: estimate_points estimate_points_created_by_id_d1b04bd9_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY estimate_points - ADD CONSTRAINT estimate_points_created_by_id_d1b04bd9_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT estimate_points_created_by_id_d1b04bd9_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: estimate_points estimate_points_estimate_id_4b4cb706_fk_estimates_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY estimate_points - ADD CONSTRAINT estimate_points_estimate_id_4b4cb706_fk_estimates_id FOREIGN KEY (estimate_id) REFERENCES estimates(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT estimate_points_estimate_id_4b4cb706_fk_estimates_id FOREIGN KEY (estimate_id) REFERENCES estimates(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: estimate_points estimate_points_project_id_ba9bcb2c_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY estimate_points - ADD CONSTRAINT estimate_points_project_id_ba9bcb2c_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT estimate_points_project_id_ba9bcb2c_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: estimate_points estimate_points_updated_by_id_a1da94e1_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY estimate_points - ADD CONSTRAINT estimate_points_updated_by_id_a1da94e1_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT estimate_points_updated_by_id_a1da94e1_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: estimate_points estimate_points_workspace_id_96fc4f92_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY estimate_points - ADD CONSTRAINT estimate_points_workspace_id_96fc4f92_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT estimate_points_workspace_id_96fc4f92_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: estimates estimates_created_by_id_7e401493_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY estimates - ADD CONSTRAINT estimates_created_by_id_7e401493_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT estimates_created_by_id_7e401493_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: estimates estimates_project_id_7f195a41_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY estimates - ADD CONSTRAINT estimates_project_id_7f195a41_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT estimates_project_id_7f195a41_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: estimates estimates_updated_by_id_b3fcfb1d_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY estimates - ADD CONSTRAINT estimates_updated_by_id_b3fcfb1d_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT estimates_updated_by_id_b3fcfb1d_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: estimates estimates_workspace_id_718811eb_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY estimates - ADD CONSTRAINT estimates_workspace_id_718811eb_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT estimates_workspace_id_718811eb_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: exporters exporters_created_by_id_44e1d9b3_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY exporters - ADD CONSTRAINT exporters_created_by_id_44e1d9b3_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT exporters_created_by_id_44e1d9b3_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: exporters exporters_initiated_by_id_d51f7552_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY exporters - ADD CONSTRAINT exporters_initiated_by_id_d51f7552_fk_users_id FOREIGN KEY (initiated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT exporters_initiated_by_id_d51f7552_fk_users_id FOREIGN KEY (initiated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: exporters exporters_updated_by_id_d2572861_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY exporters - ADD CONSTRAINT exporters_updated_by_id_d2572861_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT exporters_updated_by_id_d2572861_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: exporters exporters_workspace_id_11a04317_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY exporters - ADD CONSTRAINT exporters_workspace_id_11a04317_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT exporters_workspace_id_11a04317_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: file_assets file_asset_created_by_id_966942a0_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY file_assets - ADD CONSTRAINT file_asset_created_by_id_966942a0_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT file_asset_created_by_id_966942a0_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: file_assets file_asset_updated_by_id_d6aaf4f0_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY file_assets - ADD CONSTRAINT file_asset_updated_by_id_d6aaf4f0_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT file_asset_updated_by_id_d6aaf4f0_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: file_assets file_assets_workspace_id_fa50b9c5_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY file_assets - ADD CONSTRAINT file_assets_workspace_id_fa50b9c5_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT file_assets_workspace_id_fa50b9c5_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_comment_syncs github_comment_syncs_comment_id_6feec6d1_fk_issue_comments_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_comment_syncs - ADD CONSTRAINT github_comment_syncs_comment_id_6feec6d1_fk_issue_comments_id FOREIGN KEY (comment_id) REFERENCES issue_comments(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_comment_syncs_comment_id_6feec6d1_fk_issue_comments_id FOREIGN KEY (comment_id) REFERENCES issue_comments(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_comment_syncs github_comment_syncs_created_by_id_b1ef2517_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_comment_syncs - ADD CONSTRAINT github_comment_syncs_created_by_id_b1ef2517_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_comment_syncs_created_by_id_b1ef2517_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_comment_syncs github_comment_syncs_issue_sync_id_5e738eb5_fk_github_is; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_comment_syncs - ADD CONSTRAINT github_comment_syncs_issue_sync_id_5e738eb5_fk_github_is FOREIGN KEY (issue_sync_id) REFERENCES github_issue_syncs(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_comment_syncs_issue_sync_id_5e738eb5_fk_github_is FOREIGN KEY (issue_sync_id) REFERENCES github_issue_syncs(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_comment_syncs github_comment_syncs_project_id_6d199ace_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_comment_syncs - ADD CONSTRAINT github_comment_syncs_project_id_6d199ace_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_comment_syncs_project_id_6d199ace_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_comment_syncs github_comment_syncs_updated_by_id_bb05c066_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_comment_syncs - ADD CONSTRAINT github_comment_syncs_updated_by_id_bb05c066_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_comment_syncs_updated_by_id_bb05c066_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_comment_syncs github_comment_syncs_workspace_id_b54528c8_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_comment_syncs - ADD CONSTRAINT github_comment_syncs_workspace_id_b54528c8_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_comment_syncs_workspace_id_b54528c8_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_issue_syncs github_issue_syncs_created_by_id_d02b7c56_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_issue_syncs - ADD CONSTRAINT github_issue_syncs_created_by_id_d02b7c56_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_issue_syncs_created_by_id_d02b7c56_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_issue_syncs github_issue_syncs_issue_id_450cb083_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_issue_syncs - ADD CONSTRAINT github_issue_syncs_issue_id_450cb083_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_issue_syncs_issue_id_450cb083_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_issue_syncs github_issue_syncs_project_id_4609ad0c_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_issue_syncs - ADD CONSTRAINT github_issue_syncs_project_id_4609ad0c_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_issue_syncs_project_id_4609ad0c_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_issue_syncs github_issue_syncs_repository_sync_id_ba0d4de4_fk_github_re; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_issue_syncs - ADD CONSTRAINT github_issue_syncs_repository_sync_id_ba0d4de4_fk_github_re FOREIGN KEY (repository_sync_id) REFERENCES github_repository_syncs(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_issue_syncs_repository_sync_id_ba0d4de4_fk_github_re FOREIGN KEY (repository_sync_id) REFERENCES github_repository_syncs(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_issue_syncs github_issue_syncs_updated_by_id_e9cd6f86_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_issue_syncs - ADD CONSTRAINT github_issue_syncs_updated_by_id_e9cd6f86_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_issue_syncs_updated_by_id_e9cd6f86_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_issue_syncs github_issue_syncs_workspace_id_eae020ad_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_issue_syncs - ADD CONSTRAINT github_issue_syncs_workspace_id_eae020ad_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_issue_syncs_workspace_id_eae020ad_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repositories github_repositories_created_by_id_104fa685_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repositories - ADD CONSTRAINT github_repositories_created_by_id_104fa685_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repositories_created_by_id_104fa685_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repositories github_repositories_project_id_65c546bb_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repositories - ADD CONSTRAINT github_repositories_project_id_65c546bb_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repositories_project_id_65c546bb_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repositories github_repositories_updated_by_id_8aa4d772_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repositories - ADD CONSTRAINT github_repositories_updated_by_id_8aa4d772_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repositories_updated_by_id_8aa4d772_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repositories github_repositories_workspace_id_c4de7326_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repositories - ADD CONSTRAINT github_repositories_workspace_id_c4de7326_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repositories_workspace_id_c4de7326_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repository_syncs github_repository_sy_repository_id_ead52404_fk_github_re; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repository_syncs - ADD CONSTRAINT github_repository_sy_repository_id_ead52404_fk_github_re FOREIGN KEY (repository_id) REFERENCES github_repositories(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repository_sy_repository_id_ead52404_fk_github_re FOREIGN KEY (repository_id) REFERENCES github_repositories(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repository_syncs github_repository_sy_workspace_integratio_62858398_fk_workspace; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repository_syncs - ADD CONSTRAINT github_repository_sy_workspace_integratio_62858398_fk_workspace FOREIGN KEY (workspace_integration_id) REFERENCES workspace_integrations(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repository_sy_workspace_integratio_62858398_fk_workspace FOREIGN KEY (workspace_integration_id) REFERENCES workspace_integrations(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repository_syncs github_repository_syncs_actor_id_1fa689fe_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repository_syncs - ADD CONSTRAINT github_repository_syncs_actor_id_1fa689fe_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repository_syncs_actor_id_1fa689fe_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repository_syncs github_repository_syncs_created_by_id_0df94495_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repository_syncs - ADD CONSTRAINT github_repository_syncs_created_by_id_0df94495_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repository_syncs_created_by_id_0df94495_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repository_syncs github_repository_syncs_label_id_eb1e9bd7_fk_labels_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repository_syncs - ADD CONSTRAINT github_repository_syncs_label_id_eb1e9bd7_fk_labels_id FOREIGN KEY (label_id) REFERENCES labels(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repository_syncs_label_id_eb1e9bd7_fk_labels_id FOREIGN KEY (label_id) REFERENCES labels(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repository_syncs github_repository_syncs_project_id_e7e8291e_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repository_syncs - ADD CONSTRAINT github_repository_syncs_project_id_e7e8291e_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repository_syncs_project_id_e7e8291e_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repository_syncs github_repository_syncs_updated_by_id_07e9d065_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repository_syncs - ADD CONSTRAINT github_repository_syncs_updated_by_id_07e9d065_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repository_syncs_updated_by_id_07e9d065_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: github_repository_syncs github_repository_syncs_workspace_id_4a22a8b8_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY github_repository_syncs - ADD CONSTRAINT github_repository_syncs_workspace_id_4a22a8b8_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT github_repository_syncs_workspace_id_4a22a8b8_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: global_views global_views_created_by_id_14b7d95c_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY global_views - ADD CONSTRAINT global_views_created_by_id_14b7d95c_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT global_views_created_by_id_14b7d95c_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: global_views global_views_updated_by_id_112e0281_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY global_views - ADD CONSTRAINT global_views_updated_by_id_112e0281_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT global_views_updated_by_id_112e0281_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: global_views global_views_workspace_id_3c68eca7_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY global_views - ADD CONSTRAINT global_views_workspace_id_3c68eca7_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT global_views_workspace_id_3c68eca7_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: importers importers_created_by_id_7dd06433_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY importers - ADD CONSTRAINT importers_created_by_id_7dd06433_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT importers_created_by_id_7dd06433_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: importers importers_initiated_by_id_3cddbd23_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY importers - ADD CONSTRAINT importers_initiated_by_id_3cddbd23_fk_users_id FOREIGN KEY (initiated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT importers_initiated_by_id_3cddbd23_fk_users_id FOREIGN KEY (initiated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: importers importers_project_id_1f8b43ef_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY importers - ADD CONSTRAINT importers_project_id_1f8b43ef_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT importers_project_id_1f8b43ef_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: importers importers_token_id_c951e89f_fk_api_tokens_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY importers - ADD CONSTRAINT importers_token_id_c951e89f_fk_api_tokens_id FOREIGN KEY (token_id) REFERENCES api_tokens(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT importers_token_id_c951e89f_fk_api_tokens_id FOREIGN KEY (token_id) REFERENCES api_tokens(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: importers importers_updated_by_id_3915139e_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY importers - ADD CONSTRAINT importers_updated_by_id_3915139e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT importers_updated_by_id_3915139e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: importers importers_workspace_id_795b8985_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY importers - ADD CONSTRAINT importers_workspace_id_795b8985_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT importers_workspace_id_795b8985_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inbox_issues inbox_issues_created_by_id_483bce13_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inbox_issues - ADD CONSTRAINT inbox_issues_created_by_id_483bce13_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inbox_issues_created_by_id_483bce13_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inbox_issues inbox_issues_duplicate_to_id_6cb8d961_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inbox_issues - ADD CONSTRAINT inbox_issues_duplicate_to_id_6cb8d961_fk_issues_id FOREIGN KEY (duplicate_to_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inbox_issues_duplicate_to_id_6cb8d961_fk_issues_id FOREIGN KEY (duplicate_to_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inbox_issues inbox_issues_inbox_id_444b05b9_fk_inboxes_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inbox_issues - ADD CONSTRAINT inbox_issues_inbox_id_444b05b9_fk_inboxes_id FOREIGN KEY (inbox_id) REFERENCES inboxes(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inbox_issues_inbox_id_444b05b9_fk_inboxes_id FOREIGN KEY (inbox_id) REFERENCES inboxes(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inbox_issues inbox_issues_issue_id_7d74b224_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inbox_issues - ADD CONSTRAINT inbox_issues_issue_id_7d74b224_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inbox_issues_issue_id_7d74b224_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inbox_issues inbox_issues_project_id_5117a70b_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inbox_issues - ADD CONSTRAINT inbox_issues_project_id_5117a70b_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inbox_issues_project_id_5117a70b_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inbox_issues inbox_issues_updated_by_id_d1b2b70f_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inbox_issues - ADD CONSTRAINT inbox_issues_updated_by_id_d1b2b70f_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inbox_issues_updated_by_id_d1b2b70f_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inbox_issues inbox_issues_workspace_id_4a61a7bd_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inbox_issues - ADD CONSTRAINT inbox_issues_workspace_id_4a61a7bd_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inbox_issues_workspace_id_4a61a7bd_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inboxes inboxes_created_by_id_9f1cf5ec_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inboxes - ADD CONSTRAINT inboxes_created_by_id_9f1cf5ec_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inboxes_created_by_id_9f1cf5ec_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inboxes inboxes_project_id_a0135c66_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inboxes - ADD CONSTRAINT inboxes_project_id_a0135c66_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inboxes_project_id_a0135c66_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inboxes inboxes_updated_by_id_69b7b3ae_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inboxes - ADD CONSTRAINT inboxes_updated_by_id_69b7b3ae_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inboxes_updated_by_id_69b7b3ae_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: inboxes inboxes_workspace_id_d6178865_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY inboxes - ADD CONSTRAINT inboxes_workspace_id_d6178865_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT inboxes_workspace_id_d6178865_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: instance_admins instance_admins_created_by_id_7f4e03b4_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY instance_admins - ADD CONSTRAINT instance_admins_created_by_id_7f4e03b4_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT instance_admins_created_by_id_7f4e03b4_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: instance_admins instance_admins_instance_id_66d1ba73_fk_instances_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY instance_admins - ADD CONSTRAINT instance_admins_instance_id_66d1ba73_fk_instances_id FOREIGN KEY (instance_id) REFERENCES instances(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT instance_admins_instance_id_66d1ba73_fk_instances_id FOREIGN KEY (instance_id) REFERENCES instances(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: instance_admins instance_admins_updated_by_id_b7800403_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY instance_admins - ADD CONSTRAINT instance_admins_updated_by_id_b7800403_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT instance_admins_updated_by_id_b7800403_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: instance_admins instance_admins_user_id_cc6e9b62_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY instance_admins - ADD CONSTRAINT instance_admins_user_id_cc6e9b62_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT instance_admins_user_id_cc6e9b62_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: instance_configurations instance_configurations_created_by_id_e683f3e5_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY instance_configurations - ADD CONSTRAINT instance_configurations_created_by_id_e683f3e5_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT instance_configurations_created_by_id_e683f3e5_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: instance_configurations instance_configurations_updated_by_id_f0d7542e_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY instance_configurations - ADD CONSTRAINT instance_configurations_updated_by_id_f0d7542e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT instance_configurations_updated_by_id_f0d7542e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: instances instances_created_by_id_c76e92ef_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY instances - ADD CONSTRAINT instances_created_by_id_c76e92ef_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT instances_created_by_id_c76e92ef_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: instances instances_updated_by_id_cce8fcdf_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY instances - ADD CONSTRAINT instances_updated_by_id_cce8fcdf_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT instances_updated_by_id_cce8fcdf_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: integrations integrations_created_by_id_0b6edd52_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY integrations - ADD CONSTRAINT integrations_created_by_id_0b6edd52_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT integrations_created_by_id_0b6edd52_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: integrations integrations_updated_by_id_d6d00d15_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY integrations - ADD CONSTRAINT integrations_updated_by_id_d6d00d15_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT integrations_updated_by_id_d6d00d15_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_activities issue_activities_issue_id_180e5662_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_activities - ADD CONSTRAINT issue_activities_issue_id_180e5662_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_activities_issue_id_180e5662_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_activities issue_activity_actor_id_52fdd42d_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_activities - ADD CONSTRAINT issue_activity_actor_id_52fdd42d_fk_user_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_activity_actor_id_52fdd42d_fk_user_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_activities issue_activity_created_by_id_49516e3d_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_activities - ADD CONSTRAINT issue_activity_created_by_id_49516e3d_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_activity_created_by_id_49516e3d_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_activities issue_activity_issue_comment_id_701f3c3c_fk_issue_comment_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_activities - ADD CONSTRAINT issue_activity_issue_comment_id_701f3c3c_fk_issue_comment_id FOREIGN KEY (issue_comment_id) REFERENCES issue_comments(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_activity_issue_comment_id_701f3c3c_fk_issue_comment_id FOREIGN KEY (issue_comment_id) REFERENCES issue_comments(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_activities issue_activity_project_id_d0ac2ccf_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_activities - ADD CONSTRAINT issue_activity_project_id_d0ac2ccf_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_activity_project_id_d0ac2ccf_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_activities issue_activity_updated_by_id_0075f9bd_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_activities - ADD CONSTRAINT issue_activity_updated_by_id_0075f9bd_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_activity_updated_by_id_0075f9bd_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_activities issue_activity_workspace_id_65acaf73_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_activities - ADD CONSTRAINT issue_activity_workspace_id_65acaf73_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_activity_workspace_id_65acaf73_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_assignees issue_assignee_assignee_id_50f5c04e_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT issue_assignee_assignee_id_50f5c04e_fk_user_id FOREIGN KEY (assignee_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_assignee_assignee_id_50f5c04e_fk_user_id FOREIGN KEY (assignee_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_assignees issue_assignee_created_by_id_f693d43b_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT issue_assignee_created_by_id_f693d43b_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_assignee_created_by_id_f693d43b_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_assignees issue_assignee_issue_id_72da08db_fk_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT issue_assignee_issue_id_72da08db_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_assignee_issue_id_72da08db_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_assignees issue_assignee_project_id_61c18bf2_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT issue_assignee_project_id_61c18bf2_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_assignee_project_id_61c18bf2_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_assignees issue_assignee_updated_by_id_c54088aa_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT issue_assignee_updated_by_id_c54088aa_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_assignee_updated_by_id_c54088aa_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_assignees issue_assignee_workspace_id_9aad55b7_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT issue_assignee_workspace_id_9aad55b7_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_assignee_workspace_id_9aad55b7_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_attachments issue_attachments_created_by_id_87be05bb_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_attachments - ADD CONSTRAINT issue_attachments_created_by_id_87be05bb_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_attachments_created_by_id_87be05bb_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_attachments issue_attachments_issue_id_0faf88bf_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_attachments - ADD CONSTRAINT issue_attachments_issue_id_0faf88bf_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_attachments_issue_id_0faf88bf_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_attachments issue_attachments_project_id_a95fe706_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_attachments - ADD CONSTRAINT issue_attachments_project_id_a95fe706_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_attachments_project_id_a95fe706_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_attachments issue_attachments_updated_by_id_47dceec1_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_attachments - ADD CONSTRAINT issue_attachments_updated_by_id_47dceec1_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_attachments_updated_by_id_47dceec1_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_attachments issue_attachments_workspace_id_c456a532_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_attachments - ADD CONSTRAINT issue_attachments_workspace_id_c456a532_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_attachments_workspace_id_c456a532_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_blockers issue_blocker_block_id_5d15a701_fk_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_blockers - ADD CONSTRAINT issue_blocker_block_id_5d15a701_fk_issue_id FOREIGN KEY (block_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_blocker_block_id_5d15a701_fk_issue_id FOREIGN KEY (block_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_blockers issue_blocker_blocked_by_id_a138af71_fk_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_blockers - ADD CONSTRAINT issue_blocker_blocked_by_id_a138af71_fk_issue_id FOREIGN KEY (blocked_by_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_blocker_blocked_by_id_a138af71_fk_issue_id FOREIGN KEY (blocked_by_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_blockers issue_blocker_created_by_id_0d19f6ea_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_blockers - ADD CONSTRAINT issue_blocker_created_by_id_0d19f6ea_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_blocker_created_by_id_0d19f6ea_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_blockers issue_blocker_project_id_380bd100_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_blockers - ADD CONSTRAINT issue_blocker_project_id_380bd100_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_blocker_project_id_380bd100_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_blockers issue_blocker_updated_by_id_4af87d63_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_blockers - ADD CONSTRAINT issue_blocker_updated_by_id_4af87d63_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_blocker_updated_by_id_4af87d63_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_blockers issue_blocker_workspace_id_419a1c71_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_blockers - ADD CONSTRAINT issue_blocker_workspace_id_419a1c71_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_blocker_workspace_id_419a1c71_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_comments issue_comment_actor_id_d312315b_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_comments - ADD CONSTRAINT issue_comment_actor_id_d312315b_fk_user_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_comment_actor_id_d312315b_fk_user_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_comments issue_comment_created_by_id_0765f239_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_comments - ADD CONSTRAINT issue_comment_created_by_id_0765f239_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_comment_created_by_id_0765f239_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_comments issue_comment_issue_id_d0195e35_fk_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_comments - ADD CONSTRAINT issue_comment_issue_id_d0195e35_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_comment_issue_id_d0195e35_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_comments issue_comment_project_id_db37c105_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_comments - ADD CONSTRAINT issue_comment_project_id_db37c105_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_comment_project_id_db37c105_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_comments issue_comment_updated_by_id_96cfb86e_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_comments - ADD CONSTRAINT issue_comment_updated_by_id_96cfb86e_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_comment_updated_by_id_96cfb86e_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_comments issue_comment_workspace_id_3f7969ec_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_comments - ADD CONSTRAINT issue_comment_workspace_id_3f7969ec_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_comment_workspace_id_3f7969ec_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issues issue_created_by_id_8f0ae62b_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issues - ADD CONSTRAINT issue_created_by_id_8f0ae62b_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_created_by_id_8f0ae62b_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_labels issue_label_created_by_id_94075315_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_labels - ADD CONSTRAINT issue_label_created_by_id_94075315_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_label_created_by_id_94075315_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_labels issue_label_issue_id_0f252e52_fk_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_labels - ADD CONSTRAINT issue_label_issue_id_0f252e52_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_label_issue_id_0f252e52_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_labels issue_label_label_id_5f22777f_fk_label_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_labels - ADD CONSTRAINT issue_label_label_id_5f22777f_fk_label_id FOREIGN KEY (label_id) REFERENCES labels(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_label_label_id_5f22777f_fk_label_id FOREIGN KEY (label_id) REFERENCES labels(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_labels issue_label_project_id_eaa2ba39_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_labels - ADD CONSTRAINT issue_label_project_id_eaa2ba39_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_label_project_id_eaa2ba39_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_labels issue_label_updated_by_id_a97a6733_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_labels - ADD CONSTRAINT issue_label_updated_by_id_a97a6733_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_label_updated_by_id_a97a6733_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_labels issue_label_workspace_id_b5b1faac_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_labels - ADD CONSTRAINT issue_label_workspace_id_b5b1faac_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_label_workspace_id_b5b1faac_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_links issue_links_created_by_id_5e4aa092_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_links - ADD CONSTRAINT issue_links_created_by_id_5e4aa092_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_links_created_by_id_5e4aa092_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_links issue_links_issue_id_7032881f_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_links - ADD CONSTRAINT issue_links_issue_id_7032881f_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_links_issue_id_7032881f_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_links issue_links_project_id_63d6e9ce_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_links - ADD CONSTRAINT issue_links_project_id_63d6e9ce_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_links_project_id_63d6e9ce_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_links issue_links_updated_by_id_a771cce4_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_links - ADD CONSTRAINT issue_links_updated_by_id_a771cce4_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_links_updated_by_id_a771cce4_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_links issue_links_workspace_id_ff9038e7_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_links - ADD CONSTRAINT issue_links_workspace_id_ff9038e7_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_links_workspace_id_ff9038e7_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_mentions issue_mentions_created_by_id_eb44759e_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_mentions - ADD CONSTRAINT issue_mentions_created_by_id_eb44759e_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_mentions_created_by_id_eb44759e_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_mentions issue_mentions_issue_id_d8821107_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_mentions - ADD CONSTRAINT issue_mentions_issue_id_d8821107_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_mentions_issue_id_d8821107_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_mentions issue_mentions_mention_id_cf1b9346_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_mentions - ADD CONSTRAINT issue_mentions_mention_id_cf1b9346_fk_users_id FOREIGN KEY (mention_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_mentions_mention_id_cf1b9346_fk_users_id FOREIGN KEY (mention_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_mentions issue_mentions_project_id_d0cccdf5_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_mentions - ADD CONSTRAINT issue_mentions_project_id_d0cccdf5_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_mentions_project_id_d0cccdf5_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_mentions issue_mentions_updated_by_id_c62106d3_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_mentions - ADD CONSTRAINT issue_mentions_updated_by_id_c62106d3_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_mentions_updated_by_id_c62106d3_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_mentions issue_mentions_workspace_id_4ca59d05_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_mentions - ADD CONSTRAINT issue_mentions_workspace_id_4ca59d05_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_mentions_workspace_id_4ca59d05_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issues issue_parent_id_ce8d76ba_fk_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issues - ADD CONSTRAINT issue_parent_id_ce8d76ba_fk_issue_id FOREIGN KEY (parent_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_parent_id_ce8d76ba_fk_issue_id FOREIGN KEY (parent_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issues issue_project_id_fea0fc80_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issues - ADD CONSTRAINT issue_project_id_fea0fc80_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_project_id_fea0fc80_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_properties issue_property_created_by_id_8e92131c_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_properties - ADD CONSTRAINT issue_property_created_by_id_8e92131c_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_property_created_by_id_8e92131c_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_properties issue_property_project_id_30e7de7b_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_properties - ADD CONSTRAINT issue_property_project_id_30e7de7b_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_property_project_id_30e7de7b_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_properties issue_property_updated_by_id_ff158d4d_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_properties - ADD CONSTRAINT issue_property_updated_by_id_ff158d4d_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_property_updated_by_id_ff158d4d_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_properties issue_property_user_id_0b1d1c8f_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_properties - ADD CONSTRAINT issue_property_user_id_0b1d1c8f_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_property_user_id_0b1d1c8f_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_properties issue_property_workspace_id_17860d65_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_properties - ADD CONSTRAINT issue_property_workspace_id_17860d65_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_property_workspace_id_17860d65_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_reactions issue_reactions_actor_id_5f5b8303_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_reactions - ADD CONSTRAINT issue_reactions_actor_id_5f5b8303_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_reactions_actor_id_5f5b8303_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_reactions issue_reactions_created_by_id_3953b7de_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_reactions - ADD CONSTRAINT issue_reactions_created_by_id_3953b7de_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_reactions_created_by_id_3953b7de_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_reactions issue_reactions_issue_id_2c324bae_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_reactions - ADD CONSTRAINT issue_reactions_issue_id_2c324bae_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_reactions_issue_id_2c324bae_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_reactions issue_reactions_project_id_8708ecaf_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_reactions - ADD CONSTRAINT issue_reactions_project_id_8708ecaf_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_reactions_project_id_8708ecaf_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_reactions issue_reactions_updated_by_id_4069af90_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_reactions - ADD CONSTRAINT issue_reactions_updated_by_id_4069af90_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_reactions_updated_by_id_4069af90_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_reactions issue_reactions_workspace_id_bd8d7550_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_reactions - ADD CONSTRAINT issue_reactions_workspace_id_bd8d7550_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_reactions_workspace_id_bd8d7550_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_relations issue_relations_created_by_id_854d07e7_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_relations - ADD CONSTRAINT issue_relations_created_by_id_854d07e7_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_relations_created_by_id_854d07e7_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_relations issue_relations_issue_id_e1db6f72_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_relations - ADD CONSTRAINT issue_relations_issue_id_e1db6f72_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_relations_issue_id_e1db6f72_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_relations issue_relations_project_id_15350161_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_relations - ADD CONSTRAINT issue_relations_project_id_15350161_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_relations_project_id_15350161_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_relations issue_relations_related_issue_id_e1ea44a7_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_relations - ADD CONSTRAINT issue_relations_related_issue_id_e1ea44a7_fk_issues_id FOREIGN KEY (related_issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_relations_related_issue_id_e1ea44a7_fk_issues_id FOREIGN KEY (related_issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_relations issue_relations_updated_by_id_3dfa850f_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_relations - ADD CONSTRAINT issue_relations_updated_by_id_3dfa850f_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_relations_updated_by_id_3dfa850f_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_relations issue_relations_workspace_id_00b50e90_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_relations - ADD CONSTRAINT issue_relations_workspace_id_00b50e90_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_relations_workspace_id_00b50e90_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_sequences issue_sequence_created_by_id_59270506_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_sequences - ADD CONSTRAINT issue_sequence_created_by_id_59270506_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_sequence_created_by_id_59270506_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_sequences issue_sequence_issue_id_16e9f00f_fk_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_sequences - ADD CONSTRAINT issue_sequence_issue_id_16e9f00f_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_sequence_issue_id_16e9f00f_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_sequences issue_sequence_project_id_ce882e85_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_sequences - ADD CONSTRAINT issue_sequence_project_id_ce882e85_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_sequence_project_id_ce882e85_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_sequences issue_sequence_updated_by_id_310c8dd3_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_sequences - ADD CONSTRAINT issue_sequence_updated_by_id_310c8dd3_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_sequence_updated_by_id_310c8dd3_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_sequences issue_sequence_workspace_id_0d3f0fd4_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_sequences - ADD CONSTRAINT issue_sequence_workspace_id_0d3f0fd4_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_sequence_workspace_id_0d3f0fd4_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issues issue_state_id_1a65560d_fk_state_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issues - ADD CONSTRAINT issue_state_id_1a65560d_fk_state_id FOREIGN KEY (state_id) REFERENCES states(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_state_id_1a65560d_fk_state_id FOREIGN KEY (state_id) REFERENCES states(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_subscribers issue_subscribers_created_by_id_b6ea0157_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_subscribers - ADD CONSTRAINT issue_subscribers_created_by_id_b6ea0157_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_subscribers_created_by_id_b6ea0157_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_subscribers issue_subscribers_issue_id_85cf2093_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_subscribers - ADD CONSTRAINT issue_subscribers_issue_id_85cf2093_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_subscribers_issue_id_85cf2093_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_subscribers issue_subscribers_project_id_cf48d75f_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_subscribers - ADD CONSTRAINT issue_subscribers_project_id_cf48d75f_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_subscribers_project_id_cf48d75f_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_subscribers issue_subscribers_subscriber_id_2d89c988_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_subscribers - ADD CONSTRAINT issue_subscribers_subscriber_id_2d89c988_fk_users_id FOREIGN KEY (subscriber_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_subscribers_subscriber_id_2d89c988_fk_users_id FOREIGN KEY (subscriber_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_subscribers issue_subscribers_updated_by_id_1bfc2f55_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_subscribers - ADD CONSTRAINT issue_subscribers_updated_by_id_1bfc2f55_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_subscribers_updated_by_id_1bfc2f55_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_subscribers issue_subscribers_workspace_id_96afa91f_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_subscribers - ADD CONSTRAINT issue_subscribers_workspace_id_96afa91f_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_subscribers_workspace_id_96afa91f_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issues issue_updated_by_id_f1261863_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issues - ADD CONSTRAINT issue_updated_by_id_f1261863_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_updated_by_id_f1261863_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_views issue_views_created_by_id_0d2e456b_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_views - ADD CONSTRAINT issue_views_created_by_id_0d2e456b_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_views_created_by_id_0d2e456b_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_views issue_views_project_id_55ee009f_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_views - ADD CONSTRAINT issue_views_project_id_55ee009f_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_views_project_id_55ee009f_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_views issue_views_updated_by_id_28cd9870_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_views - ADD CONSTRAINT issue_views_updated_by_id_28cd9870_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_views_updated_by_id_28cd9870_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_views issue_views_workspace_id_8785e03d_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_views - ADD CONSTRAINT issue_views_workspace_id_8785e03d_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_views_workspace_id_8785e03d_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_votes issue_votes_actor_id_525cab61_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_votes - ADD CONSTRAINT issue_votes_actor_id_525cab61_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_votes_actor_id_525cab61_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_votes issue_votes_created_by_id_86adcf5c_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_votes - ADD CONSTRAINT issue_votes_created_by_id_86adcf5c_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_votes_created_by_id_86adcf5c_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_votes issue_votes_issue_id_07a61ecb_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_votes - ADD CONSTRAINT issue_votes_issue_id_07a61ecb_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_votes_issue_id_07a61ecb_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_votes issue_votes_project_id_b649f55b_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_votes - ADD CONSTRAINT issue_votes_project_id_b649f55b_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_votes_project_id_b649f55b_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_votes issue_votes_updated_by_id_9e2a6cdc_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_votes - ADD CONSTRAINT issue_votes_updated_by_id_9e2a6cdc_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_votes_updated_by_id_9e2a6cdc_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issue_votes issue_votes_workspace_id_a3e91a6b_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issue_votes - ADD CONSTRAINT issue_votes_workspace_id_a3e91a6b_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_votes_workspace_id_a3e91a6b_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: issues issue_workspace_id_c84878c1_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY issues - ADD CONSTRAINT issue_workspace_id_c84878c1_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT issue_workspace_id_c84878c1_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: labels label_created_by_id_aa6ffcfa_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY labels - ADD CONSTRAINT label_created_by_id_aa6ffcfa_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT label_created_by_id_aa6ffcfa_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: labels label_parent_id_7a853296_fk_label_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY labels - ADD CONSTRAINT label_parent_id_7a853296_fk_label_id FOREIGN KEY (parent_id) REFERENCES labels(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT label_parent_id_7a853296_fk_label_id FOREIGN KEY (parent_id) REFERENCES labels(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: labels label_project_id_90e0f1a2_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY labels - ADD CONSTRAINT label_project_id_90e0f1a2_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT label_project_id_90e0f1a2_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: labels label_updated_by_id_894a5464_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY labels - ADD CONSTRAINT label_updated_by_id_894a5464_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT label_updated_by_id_894a5464_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: labels label_workspace_id_c4c9ae5a_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY labels - ADD CONSTRAINT label_workspace_id_c4c9ae5a_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT label_workspace_id_c4c9ae5a_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: modules module_created_by_id_ff7a5866_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY modules - ADD CONSTRAINT module_created_by_id_ff7a5866_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_created_by_id_ff7a5866_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_favorites module_favorites_created_by_id_7f84820d_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_favorites - ADD CONSTRAINT module_favorites_created_by_id_7f84820d_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_favorites_created_by_id_7f84820d_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_favorites module_favorites_module_id_c4f0736b_fk_modules_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_favorites - ADD CONSTRAINT module_favorites_module_id_c4f0736b_fk_modules_id FOREIGN KEY (module_id) REFERENCES modules(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_favorites_module_id_c4f0736b_fk_modules_id FOREIGN KEY (module_id) REFERENCES modules(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_favorites module_favorites_project_id_83d9d9e8_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_favorites - ADD CONSTRAINT module_favorites_project_id_83d9d9e8_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_favorites_project_id_83d9d9e8_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_favorites module_favorites_updated_by_id_2437fed0_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_favorites - ADD CONSTRAINT module_favorites_updated_by_id_2437fed0_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_favorites_updated_by_id_2437fed0_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_favorites module_favorites_user_id_c5b76375_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_favorites - ADD CONSTRAINT module_favorites_user_id_c5b76375_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_favorites_user_id_c5b76375_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_favorites module_favorites_workspace_id_65a4ac6f_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_favorites - ADD CONSTRAINT module_favorites_workspace_id_65a4ac6f_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_favorites_workspace_id_65a4ac6f_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_issues module_issues_created_by_id_de0b995a_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_issues - ADD CONSTRAINT module_issues_created_by_id_de0b995a_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_issues_created_by_id_de0b995a_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_issues module_issues_issue_id_7caa908b_fk_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_issues - ADD CONSTRAINT module_issues_issue_id_7caa908b_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_issues_issue_id_7caa908b_fk_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_issues module_issues_module_id_74e0ed5a_fk_module_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_issues - ADD CONSTRAINT module_issues_module_id_74e0ed5a_fk_module_id FOREIGN KEY (module_id) REFERENCES modules(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_issues_module_id_74e0ed5a_fk_module_id FOREIGN KEY (module_id) REFERENCES modules(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_issues module_issues_project_id_59836d1e_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_issues - ADD CONSTRAINT module_issues_project_id_59836d1e_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_issues_project_id_59836d1e_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_issues module_issues_updated_by_id_46dbf724_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_issues - ADD CONSTRAINT module_issues_updated_by_id_46dbf724_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_issues_updated_by_id_46dbf724_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_issues module_issues_workspace_id_6bf85201_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_issues - ADD CONSTRAINT module_issues_workspace_id_6bf85201_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_issues_workspace_id_6bf85201_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: modules module_lead_id_04966630_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY modules - ADD CONSTRAINT module_lead_id_04966630_fk_user_id FOREIGN KEY (lead_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_lead_id_04966630_fk_user_id FOREIGN KEY (lead_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_links module_links_created_by_id_eaf6492f_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_links - ADD CONSTRAINT module_links_created_by_id_eaf6492f_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_links_created_by_id_eaf6492f_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_links module_links_module_id_0fda3f8a_fk_modules_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_links - ADD CONSTRAINT module_links_module_id_0fda3f8a_fk_modules_id FOREIGN KEY (module_id) REFERENCES modules(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_links_module_id_0fda3f8a_fk_modules_id FOREIGN KEY (module_id) REFERENCES modules(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_links module_links_project_id_f720bb79_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_links - ADD CONSTRAINT module_links_project_id_f720bb79_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_links_project_id_f720bb79_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_links module_links_updated_by_id_4da419e7_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_links - ADD CONSTRAINT module_links_updated_by_id_4da419e7_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_links_updated_by_id_4da419e7_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_links module_links_workspace_id_0521c11c_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_links - ADD CONSTRAINT module_links_workspace_id_0521c11c_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_links_workspace_id_0521c11c_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_members module_member_created_by_id_2ed84a65_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_members - ADD CONSTRAINT module_member_created_by_id_2ed84a65_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_member_created_by_id_2ed84a65_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_members module_member_member_id_928f473e_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_members - ADD CONSTRAINT module_member_member_id_928f473e_fk_user_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_member_member_id_928f473e_fk_user_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_members module_member_module_id_f00be7ef_fk_module_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_members - ADD CONSTRAINT module_member_module_id_f00be7ef_fk_module_id FOREIGN KEY (module_id) REFERENCES modules(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_member_module_id_f00be7ef_fk_module_id FOREIGN KEY (module_id) REFERENCES modules(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_members module_member_project_id_ec8d2376_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_members - ADD CONSTRAINT module_member_project_id_ec8d2376_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_member_project_id_ec8d2376_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_members module_member_updated_by_id_a9046438_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_members - ADD CONSTRAINT module_member_updated_by_id_a9046438_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_member_updated_by_id_a9046438_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: module_members module_member_workspace_id_f2f23c73_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY module_members - ADD CONSTRAINT module_member_workspace_id_f2f23c73_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_member_workspace_id_f2f23c73_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: modules module_project_id_da84b04f_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY modules - ADD CONSTRAINT module_project_id_da84b04f_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_project_id_da84b04f_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: modules module_updated_by_id_72ab6d5c_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY modules - ADD CONSTRAINT module_updated_by_id_72ab6d5c_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_updated_by_id_72ab6d5c_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: modules module_workspace_id_0a826fef_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY modules - ADD CONSTRAINT module_workspace_id_0a826fef_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT module_workspace_id_0a826fef_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: notifications notifications_created_by_id_b9c3f81b_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY notifications - ADD CONSTRAINT notifications_created_by_id_b9c3f81b_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT notifications_created_by_id_b9c3f81b_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: notifications notifications_project_id_e4d4f192_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY notifications - ADD CONSTRAINT notifications_project_id_e4d4f192_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT notifications_project_id_e4d4f192_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: notifications notifications_receiver_id_b708b2b0_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY notifications - ADD CONSTRAINT notifications_receiver_id_b708b2b0_fk_users_id FOREIGN KEY (receiver_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT notifications_receiver_id_b708b2b0_fk_users_id FOREIGN KEY (receiver_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: notifications notifications_triggered_by_id_31cdec21_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY notifications - ADD CONSTRAINT notifications_triggered_by_id_31cdec21_fk_users_id FOREIGN KEY (triggered_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT notifications_triggered_by_id_31cdec21_fk_users_id FOREIGN KEY (triggered_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: notifications notifications_updated_by_id_8a651e96_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY notifications - ADD CONSTRAINT notifications_updated_by_id_8a651e96_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT notifications_updated_by_id_8a651e96_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: notifications notifications_workspace_id_b2f09ef7_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY notifications - ADD CONSTRAINT notifications_workspace_id_b2f09ef7_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT notifications_workspace_id_b2f09ef7_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_blocks page_blocks_created_by_id_696391e1_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_blocks - ADD CONSTRAINT page_blocks_created_by_id_696391e1_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_blocks_created_by_id_696391e1_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_blocks page_blocks_issue_id_33cad86b_fk_issues_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_blocks - ADD CONSTRAINT page_blocks_issue_id_33cad86b_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_blocks_issue_id_33cad86b_fk_issues_id FOREIGN KEY (issue_id) REFERENCES issues(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_blocks page_blocks_page_id_5f55e114_fk_pages_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_blocks - ADD CONSTRAINT page_blocks_page_id_5f55e114_fk_pages_id FOREIGN KEY (page_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_blocks_page_id_5f55e114_fk_pages_id FOREIGN KEY (page_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_blocks page_blocks_project_id_068d80f7_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_blocks - ADD CONSTRAINT page_blocks_project_id_068d80f7_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_blocks_project_id_068d80f7_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_blocks page_blocks_updated_by_id_1a29acb7_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_blocks - ADD CONSTRAINT page_blocks_updated_by_id_1a29acb7_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_blocks_updated_by_id_1a29acb7_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_blocks page_blocks_workspace_id_b051825d_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_blocks - ADD CONSTRAINT page_blocks_workspace_id_b051825d_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_blocks_workspace_id_b051825d_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_favorites page_favorites_created_by_id_3b672270_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_favorites - ADD CONSTRAINT page_favorites_created_by_id_3b672270_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_favorites_created_by_id_3b672270_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_favorites page_favorites_page_id_0896034b_fk_pages_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_favorites - ADD CONSTRAINT page_favorites_page_id_0896034b_fk_pages_id FOREIGN KEY (page_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_favorites_page_id_0896034b_fk_pages_id FOREIGN KEY (page_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_favorites page_favorites_project_id_e0e3c871_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_favorites - ADD CONSTRAINT page_favorites_project_id_e0e3c871_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_favorites_project_id_e0e3c871_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_favorites page_favorites_updated_by_id_623c7ac5_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_favorites - ADD CONSTRAINT page_favorites_updated_by_id_623c7ac5_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_favorites_updated_by_id_623c7ac5_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_favorites page_favorites_user_id_162640a9_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_favorites - ADD CONSTRAINT page_favorites_user_id_162640a9_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_favorites_user_id_162640a9_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_favorites page_favorites_workspace_id_4b7858d9_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_favorites - ADD CONSTRAINT page_favorites_workspace_id_4b7858d9_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_favorites_workspace_id_4b7858d9_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_labels page_labels_created_by_id_fbd942c0_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_labels - ADD CONSTRAINT page_labels_created_by_id_fbd942c0_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_labels_created_by_id_fbd942c0_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_labels page_labels_label_id_05958e53_fk_labels_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_labels - ADD CONSTRAINT page_labels_label_id_05958e53_fk_labels_id FOREIGN KEY (label_id) REFERENCES labels(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_labels_label_id_05958e53_fk_labels_id FOREIGN KEY (label_id) REFERENCES labels(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_labels page_labels_page_id_0e6cdb3d_fk_pages_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_labels - ADD CONSTRAINT page_labels_page_id_0e6cdb3d_fk_pages_id FOREIGN KEY (page_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_labels_page_id_0e6cdb3d_fk_pages_id FOREIGN KEY (page_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_labels page_labels_project_id_938a63ca_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_labels - ADD CONSTRAINT page_labels_project_id_938a63ca_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_labels_project_id_938a63ca_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_labels page_labels_updated_by_id_d9fddbff_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_labels - ADD CONSTRAINT page_labels_updated_by_id_d9fddbff_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_labels_updated_by_id_d9fddbff_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_labels page_labels_workspace_id_078bb01c_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_labels - ADD CONSTRAINT page_labels_workspace_id_078bb01c_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_labels_workspace_id_078bb01c_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_logs page_logs_created_by_id_4a295aec_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_logs - ADD CONSTRAINT page_logs_created_by_id_4a295aec_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_logs_created_by_id_4a295aec_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_logs page_logs_page_id_0e0d747d_fk_pages_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_logs - ADD CONSTRAINT page_logs_page_id_0e0d747d_fk_pages_id FOREIGN KEY (page_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_logs_page_id_0e0d747d_fk_pages_id FOREIGN KEY (page_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_logs page_logs_project_id_d5117f7a_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_logs - ADD CONSTRAINT page_logs_project_id_d5117f7a_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_logs_project_id_d5117f7a_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_logs page_logs_updated_by_id_1995190b_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_logs - ADD CONSTRAINT page_logs_updated_by_id_1995190b_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_logs_updated_by_id_1995190b_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: page_logs page_logs_workspace_id_be7bde64_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY page_logs - ADD CONSTRAINT page_logs_workspace_id_be7bde64_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT page_logs_workspace_id_be7bde64_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: pages pages_created_by_id_d109a675_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY pages - ADD CONSTRAINT pages_created_by_id_d109a675_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT pages_created_by_id_d109a675_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: pages pages_owned_by_id_bf50485f_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY pages - ADD CONSTRAINT pages_owned_by_id_bf50485f_fk_users_id FOREIGN KEY (owned_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT pages_owned_by_id_bf50485f_fk_users_id FOREIGN KEY (owned_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: pages pages_parent_id_8b823409_fk_pages_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY pages - ADD CONSTRAINT pages_parent_id_8b823409_fk_pages_id FOREIGN KEY (parent_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT pages_parent_id_8b823409_fk_pages_id FOREIGN KEY (parent_id) REFERENCES pages(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: pages pages_project_id_272eed09_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY pages - ADD CONSTRAINT pages_project_id_272eed09_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT pages_project_id_272eed09_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: pages pages_updated_by_id_6c42de3e_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY pages - ADD CONSTRAINT pages_updated_by_id_6c42de3e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT pages_updated_by_id_6c42de3e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: pages pages_workspace_id_c6c51010_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY pages - ADD CONSTRAINT pages_workspace_id_c6c51010_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT pages_workspace_id_c6c51010_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: projects project_created_by_id_6cc13408_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY projects - ADD CONSTRAINT project_created_by_id_6cc13408_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_created_by_id_6cc13408_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: projects project_default_assignee_id_6ba45f90_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY projects - ADD CONSTRAINT project_default_assignee_id_6ba45f90_fk_user_id FOREIGN KEY (default_assignee_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_default_assignee_id_6ba45f90_fk_user_id FOREIGN KEY (default_assignee_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_deploy_boards project_deploy_boards_created_by_id_2ea72f98_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_deploy_boards - ADD CONSTRAINT project_deploy_boards_created_by_id_2ea72f98_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_deploy_boards_created_by_id_2ea72f98_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_deploy_boards project_deploy_boards_inbox_id_a6a75525_fk_inboxes_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_deploy_boards - ADD CONSTRAINT project_deploy_boards_inbox_id_a6a75525_fk_inboxes_id FOREIGN KEY (inbox_id) REFERENCES inboxes(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_deploy_boards_inbox_id_a6a75525_fk_inboxes_id FOREIGN KEY (inbox_id) REFERENCES inboxes(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_deploy_boards project_deploy_boards_project_id_49d887b2_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_deploy_boards - ADD CONSTRAINT project_deploy_boards_project_id_49d887b2_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_deploy_boards_project_id_49d887b2_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_deploy_boards project_deploy_boards_updated_by_id_290eb99e_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_deploy_boards - ADD CONSTRAINT project_deploy_boards_updated_by_id_290eb99e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_deploy_boards_updated_by_id_290eb99e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_deploy_boards project_deploy_boards_workspace_id_cd92f164_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_deploy_boards - ADD CONSTRAINT project_deploy_boards_workspace_id_cd92f164_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_deploy_boards_workspace_id_cd92f164_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_favorites project_favorites_created_by_id_613c0717_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_favorites - ADD CONSTRAINT project_favorites_created_by_id_613c0717_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_favorites_created_by_id_613c0717_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_favorites project_favorites_project_id_df76634d_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_favorites - ADD CONSTRAINT project_favorites_project_id_df76634d_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_favorites_project_id_df76634d_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_favorites project_favorites_updated_by_id_2a663e4d_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_favorites - ADD CONSTRAINT project_favorites_updated_by_id_2a663e4d_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_favorites_updated_by_id_2a663e4d_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_favorites project_favorites_user_id_500f4f5b_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_favorites - ADD CONSTRAINT project_favorites_user_id_500f4f5b_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_favorites_user_id_500f4f5b_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_favorites project_favorites_workspace_id_fa980513_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_favorites - ADD CONSTRAINT project_favorites_workspace_id_fa980513_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_favorites_workspace_id_fa980513_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_identifiers project_identifier_created_by_id_2b6f273a_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_identifiers - ADD CONSTRAINT project_identifier_created_by_id_2b6f273a_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_identifier_created_by_id_2b6f273a_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_identifiers project_identifier_project_id_13de58a9_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_identifiers - ADD CONSTRAINT project_identifier_project_id_13de58a9_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_identifier_project_id_13de58a9_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_identifiers project_identifier_updated_by_id_1a00e2a0_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_identifiers - ADD CONSTRAINT project_identifier_updated_by_id_1a00e2a0_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_identifier_updated_by_id_1a00e2a0_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_identifiers project_identifier_workspace_id_6024b517_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_identifiers - ADD CONSTRAINT project_identifier_workspace_id_6024b517_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_identifier_workspace_id_6024b517_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_members project_member_created_by_id_8b363306_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_members - ADD CONSTRAINT project_member_created_by_id_8b363306_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_member_created_by_id_8b363306_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_member_invites project_member_invite_created_by_id_a87df45c_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_member_invites - ADD CONSTRAINT project_member_invite_created_by_id_a87df45c_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_member_invite_created_by_id_a87df45c_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_member_invites project_member_invite_project_id_8fb7750e_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_member_invites - ADD CONSTRAINT project_member_invite_project_id_8fb7750e_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_member_invite_project_id_8fb7750e_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_member_invites project_member_invite_updated_by_id_5aa55c96_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_member_invites - ADD CONSTRAINT project_member_invite_updated_by_id_5aa55c96_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_member_invite_updated_by_id_5aa55c96_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_member_invites project_member_invite_workspace_id_64e2dc4c_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_member_invites - ADD CONSTRAINT project_member_invite_workspace_id_64e2dc4c_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_member_invite_workspace_id_64e2dc4c_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_members project_member_member_id_9d6b126b_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_members - ADD CONSTRAINT project_member_member_id_9d6b126b_fk_user_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_member_member_id_9d6b126b_fk_user_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_members project_member_project_id_11ea1a9e_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_members - ADD CONSTRAINT project_member_project_id_11ea1a9e_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_member_project_id_11ea1a9e_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_members project_member_updated_by_id_cf6aaac4_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_members - ADD CONSTRAINT project_member_updated_by_id_cf6aaac4_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_member_updated_by_id_cf6aaac4_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_members project_member_workspace_id_88bb9a97_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_members - ADD CONSTRAINT project_member_workspace_id_88bb9a97_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_member_workspace_id_88bb9a97_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: projects project_project_lead_id_caf8e353_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY projects - ADD CONSTRAINT project_project_lead_id_caf8e353_fk_user_id FOREIGN KEY (project_lead_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_project_lead_id_caf8e353_fk_user_id FOREIGN KEY (project_lead_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_public_members project_public_members_created_by_id_c4c7c776_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_public_members - ADD CONSTRAINT project_public_members_created_by_id_c4c7c776_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_public_members_created_by_id_c4c7c776_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_public_members project_public_members_member_id_52f257f9_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_public_members - ADD CONSTRAINT project_public_members_member_id_52f257f9_fk_users_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_public_members_member_id_52f257f9_fk_users_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_public_members project_public_members_project_id_2dfd893d_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_public_members - ADD CONSTRAINT project_public_members_project_id_2dfd893d_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_public_members_project_id_2dfd893d_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_public_members project_public_members_updated_by_id_c3e4d675_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_public_members - ADD CONSTRAINT project_public_members_updated_by_id_c3e4d675_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_public_members_updated_by_id_c3e4d675_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: project_public_members project_public_members_workspace_id_ebfce110_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY project_public_members - ADD CONSTRAINT project_public_members_workspace_id_ebfce110_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_public_members_workspace_id_ebfce110_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: projects project_updated_by_id_fe290525_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY projects - ADD CONSTRAINT project_updated_by_id_fe290525_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_updated_by_id_fe290525_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: projects project_workspace_id_01764ff9_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY projects - ADD CONSTRAINT project_workspace_id_01764ff9_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT project_workspace_id_01764ff9_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: projects projects_default_state_id_f13e8b95_fk_states_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY projects - ADD CONSTRAINT projects_default_state_id_f13e8b95_fk_states_id FOREIGN KEY (default_state_id) REFERENCES states(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT projects_default_state_id_f13e8b95_fk_states_id FOREIGN KEY (default_state_id) REFERENCES states(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: projects projects_estimate_id_85c7b2ac_fk_estimates_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY projects - ADD CONSTRAINT projects_estimate_id_85c7b2ac_fk_estimates_id FOREIGN KEY (estimate_id) REFERENCES estimates(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT projects_estimate_id_85c7b2ac_fk_estimates_id FOREIGN KEY (estimate_id) REFERENCES estimates(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: slack_project_syncs slack_project_syncs_created_by_id_ec405a17_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY slack_project_syncs - ADD CONSTRAINT slack_project_syncs_created_by_id_ec405a17_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT slack_project_syncs_created_by_id_ec405a17_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: slack_project_syncs slack_project_syncs_project_id_016dc792_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY slack_project_syncs - ADD CONSTRAINT slack_project_syncs_project_id_016dc792_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT slack_project_syncs_project_id_016dc792_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: slack_project_syncs slack_project_syncs_updated_by_id_152eb3b5_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY slack_project_syncs - ADD CONSTRAINT slack_project_syncs_updated_by_id_152eb3b5_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT slack_project_syncs_updated_by_id_152eb3b5_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: slack_project_syncs slack_project_syncs_workspace_id_d1822b06_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY slack_project_syncs - ADD CONSTRAINT slack_project_syncs_workspace_id_d1822b06_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT slack_project_syncs_workspace_id_d1822b06_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: slack_project_syncs slack_project_syncs_workspace_integratio_d89c9b40_fk_workspace; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY slack_project_syncs - ADD CONSTRAINT slack_project_syncs_workspace_integratio_d89c9b40_fk_workspace FOREIGN KEY (workspace_integration_id) REFERENCES workspace_integrations(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT slack_project_syncs_workspace_integratio_d89c9b40_fk_workspace FOREIGN KEY (workspace_integration_id) REFERENCES workspace_integrations(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: social_login_connections social_login_connection_created_by_id_7ca2ef50_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY social_login_connections - ADD CONSTRAINT social_login_connection_created_by_id_7ca2ef50_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT social_login_connection_created_by_id_7ca2ef50_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: social_login_connections social_login_connection_updated_by_id_c13deb42_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY social_login_connections - ADD CONSTRAINT social_login_connection_updated_by_id_c13deb42_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT social_login_connection_updated_by_id_c13deb42_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: social_login_connections social_login_connection_user_id_0e26c0c5_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY social_login_connections - ADD CONSTRAINT social_login_connection_user_id_0e26c0c5_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT social_login_connection_user_id_0e26c0c5_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: states state_created_by_id_ff51a50d_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY states - ADD CONSTRAINT state_created_by_id_ff51a50d_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT state_created_by_id_ff51a50d_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: states state_project_id_23a65fd6_fk_project_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY states - ADD CONSTRAINT state_project_id_23a65fd6_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT state_project_id_23a65fd6_fk_project_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: states state_updated_by_id_be298453_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY states - ADD CONSTRAINT state_updated_by_id_be298453_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT state_updated_by_id_be298453_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: states state_workspace_id_2293282d_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY states - ADD CONSTRAINT state_workspace_id_2293282d_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT state_workspace_id_2293282d_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: teams team_created_by_id_725a9101_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY teams - ADD CONSTRAINT team_created_by_id_725a9101_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT team_created_by_id_725a9101_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: team_members team_member_created_by_id_7cc0ad68_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY team_members - ADD CONSTRAINT team_member_created_by_id_7cc0ad68_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT team_member_created_by_id_7cc0ad68_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: team_members team_member_member_id_905a2628_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY team_members - ADD CONSTRAINT team_member_member_id_905a2628_fk_user_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT team_member_member_id_905a2628_fk_user_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: team_members team_member_team_id_26812b86_fk_team_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY team_members - ADD CONSTRAINT team_member_team_id_26812b86_fk_team_id FOREIGN KEY (team_id) REFERENCES teams(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT team_member_team_id_26812b86_fk_team_id FOREIGN KEY (team_id) REFERENCES teams(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: team_members team_member_updated_by_id_b1d37059_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY team_members - ADD CONSTRAINT team_member_updated_by_id_b1d37059_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT team_member_updated_by_id_b1d37059_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: team_members team_member_workspace_id_5e13a185_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY team_members - ADD CONSTRAINT team_member_workspace_id_5e13a185_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT team_member_workspace_id_5e13a185_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: teams team_updated_by_id_79bb36f2_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY teams - ADD CONSTRAINT team_updated_by_id_79bb36f2_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT team_updated_by_id_79bb36f2_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: teams team_workspace_id_1d56407f_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY teams - ADD CONSTRAINT team_workspace_id_1d56407f_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT team_workspace_id_1d56407f_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: token_blacklist_blacklistedtoken token_blacklist_blacklistedtoken_token_id_3cc7fe56_fk; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY token_blacklist_blacklistedtoken - ADD CONSTRAINT token_blacklist_blacklistedtoken_token_id_3cc7fe56_fk FOREIGN KEY (token_id) REFERENCES token_blacklist_outstandingtoken(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT token_blacklist_blacklistedtoken_token_id_3cc7fe56_fk FOREIGN KEY (token_id) REFERENCES token_blacklist_outstandingtoken(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: token_blacklist_outstandingtoken token_blacklist_outstandingtoken_user_id_83bc629a_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY token_blacklist_outstandingtoken - ADD CONSTRAINT token_blacklist_outstandingtoken_user_id_83bc629a_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT token_blacklist_outstandingtoken_user_id_83bc629a_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: users_groups user_groups_group_id_b76f8aba_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY users_groups - ADD CONSTRAINT user_groups_group_id_b76f8aba_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES auth_group(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT user_groups_group_id_b76f8aba_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES auth_group(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: users_groups user_groups_user_id_abaea130_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY users_groups - ADD CONSTRAINT user_groups_user_id_abaea130_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT user_groups_user_id_abaea130_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: users_user_permissions user_user_permission_permission_id_9deb68a3_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY users_user_permissions - ADD CONSTRAINT user_user_permission_permission_id_9deb68a3_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES auth_permission(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT user_user_permission_permission_id_9deb68a3_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES auth_permission(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: users_user_permissions user_user_permissions_user_id_ed4a47ea_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY users_user_permissions - ADD CONSTRAINT user_user_permissions_user_id_ed4a47ea_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT user_user_permissions_user_id_ed4a47ea_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: view_favorites view_favorites_created_by_id_dc6047f5_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY view_favorites - ADD CONSTRAINT view_favorites_created_by_id_dc6047f5_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT view_favorites_created_by_id_dc6047f5_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: view_favorites view_favorites_project_id_241c521d_fk_projects_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY view_favorites - ADD CONSTRAINT view_favorites_project_id_241c521d_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT view_favorites_project_id_241c521d_fk_projects_id FOREIGN KEY (project_id) REFERENCES projects(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: view_favorites view_favorites_updated_by_id_2418b683_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY view_favorites - ADD CONSTRAINT view_favorites_updated_by_id_2418b683_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT view_favorites_updated_by_id_2418b683_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: view_favorites view_favorites_user_id_b1e94c2e_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY view_favorites - ADD CONSTRAINT view_favorites_user_id_b1e94c2e_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT view_favorites_user_id_b1e94c2e_fk_users_id FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: view_favorites view_favorites_view_id_3111e893_fk_issue_views_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY view_favorites - ADD CONSTRAINT view_favorites_view_id_3111e893_fk_issue_views_id FOREIGN KEY (view_id) REFERENCES issue_views(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT view_favorites_view_id_3111e893_fk_issue_views_id FOREIGN KEY (view_id) REFERENCES issue_views(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: view_favorites view_favorites_workspace_id_3dbdd2a2_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY view_favorites - ADD CONSTRAINT view_favorites_workspace_id_3dbdd2a2_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT view_favorites_workspace_id_3dbdd2a2_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: webhook_logs webhook_logs_created_by_id_71e7bc38_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY webhook_logs - ADD CONSTRAINT webhook_logs_created_by_id_71e7bc38_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT webhook_logs_created_by_id_71e7bc38_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: webhook_logs webhook_logs_updated_by_id_3d9bad04_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY webhook_logs - ADD CONSTRAINT webhook_logs_updated_by_id_3d9bad04_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT webhook_logs_updated_by_id_3d9bad04_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: webhook_logs webhook_logs_webhook_id_53707b3d_fk_webhooks_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY webhook_logs - ADD CONSTRAINT webhook_logs_webhook_id_53707b3d_fk_webhooks_id FOREIGN KEY (webhook_id) REFERENCES webhooks(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT webhook_logs_webhook_id_53707b3d_fk_webhooks_id FOREIGN KEY (webhook_id) REFERENCES webhooks(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: webhook_logs webhook_logs_workspace_id_ffcd0e31_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY webhook_logs - ADD CONSTRAINT webhook_logs_workspace_id_ffcd0e31_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT webhook_logs_workspace_id_ffcd0e31_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: webhooks webhooks_created_by_id_25aca1b0_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY webhooks - ADD CONSTRAINT webhooks_created_by_id_25aca1b0_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT webhooks_created_by_id_25aca1b0_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: webhooks webhooks_updated_by_id_ea35154e_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY webhooks - ADD CONSTRAINT webhooks_updated_by_id_ea35154e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT webhooks_updated_by_id_ea35154e_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: webhooks webhooks_workspace_id_da5865d7_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY webhooks - ADD CONSTRAINT webhooks_workspace_id_da5865d7_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT webhooks_workspace_id_da5865d7_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspaces workspace_created_by_id_10ad894e_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspaces - ADD CONSTRAINT workspace_created_by_id_10ad894e_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_created_by_id_10ad894e_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_integrations workspace_integratio_integration_id_6cb0aace_fk_integrati; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_integrations - ADD CONSTRAINT workspace_integratio_integration_id_6cb0aace_fk_integrati FOREIGN KEY (integration_id) REFERENCES integrations(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_integratio_integration_id_6cb0aace_fk_integrati FOREIGN KEY (integration_id) REFERENCES integrations(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_integrations workspace_integrations_actor_id_21619aa1_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_integrations - ADD CONSTRAINT workspace_integrations_actor_id_21619aa1_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_integrations_actor_id_21619aa1_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_integrations workspace_integrations_api_token_id_bdb1759b_fk_api_tokens_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_integrations - ADD CONSTRAINT workspace_integrations_api_token_id_bdb1759b_fk_api_tokens_id FOREIGN KEY (api_token_id) REFERENCES api_tokens(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_integrations_api_token_id_bdb1759b_fk_api_tokens_id FOREIGN KEY (api_token_id) REFERENCES api_tokens(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_integrations workspace_integrations_created_by_id_37639c73_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_integrations - ADD CONSTRAINT workspace_integrations_created_by_id_37639c73_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_integrations_created_by_id_37639c73_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_integrations workspace_integrations_updated_by_id_fce01dcb_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_integrations - ADD CONSTRAINT workspace_integrations_updated_by_id_fce01dcb_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_integrations_updated_by_id_fce01dcb_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_integrations workspace_integrations_workspace_id_27ebeb6b_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_integrations - ADD CONSTRAINT workspace_integrations_workspace_id_27ebeb6b_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_integrations_workspace_id_27ebeb6b_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_members workspace_member_created_by_id_8dc8b040_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_members - ADD CONSTRAINT workspace_member_created_by_id_8dc8b040_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_member_created_by_id_8dc8b040_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_member_invites workspace_member_invite_created_by_id_082f21d3_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_member_invites - ADD CONSTRAINT workspace_member_invite_created_by_id_082f21d3_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_member_invite_created_by_id_082f21d3_fk_user_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_member_invites workspace_member_invite_updated_by_id_d31a9c7f_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_member_invites - ADD CONSTRAINT workspace_member_invite_updated_by_id_d31a9c7f_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_member_invite_updated_by_id_d31a9c7f_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_member_invites workspace_member_invite_workspace_id_d935b364_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_member_invites - ADD CONSTRAINT workspace_member_invite_workspace_id_d935b364_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_member_invite_workspace_id_d935b364_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_members workspace_member_member_id_824f5497_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_members - ADD CONSTRAINT workspace_member_member_id_824f5497_fk_user_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_member_member_id_824f5497_fk_user_id FOREIGN KEY (member_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_members workspace_member_updated_by_id_1cec0062_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_members - ADD CONSTRAINT workspace_member_updated_by_id_1cec0062_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_member_updated_by_id_1cec0062_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_members workspace_member_workspace_id_33f66d4b_fk_workspace_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_members - ADD CONSTRAINT workspace_member_workspace_id_33f66d4b_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_member_workspace_id_33f66d4b_fk_workspace_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspaces workspace_owner_id_60a8bafc_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspaces - ADD CONSTRAINT workspace_owner_id_60a8bafc_fk_user_id FOREIGN KEY (owner_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_owner_id_60a8bafc_fk_user_id FOREIGN KEY (owner_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_themes workspace_themes_actor_id_0e94172e_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_themes - ADD CONSTRAINT workspace_themes_actor_id_0e94172e_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_themes_actor_id_0e94172e_fk_users_id FOREIGN KEY (actor_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_themes workspace_themes_created_by_id_676e2655_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_themes - ADD CONSTRAINT workspace_themes_created_by_id_676e2655_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_themes_created_by_id_676e2655_fk_users_id FOREIGN KEY (created_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_themes workspace_themes_updated_by_id_bba863fe_fk_users_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_themes - ADD CONSTRAINT workspace_themes_updated_by_id_bba863fe_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_themes_updated_by_id_bba863fe_fk_users_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspace_themes workspace_themes_workspace_id_d1bffad8_fk_workspaces_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspace_themes - ADD CONSTRAINT workspace_themes_workspace_id_d1bffad8_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED. + ADD CONSTRAINT workspace_themes_workspace_id_d1bffad8_fk_workspaces_id FOREIGN KEY (workspace_id) REFERENCES workspaces(id) DEFERRABLE INITIALLY DEFERRED; -- -- Name: workspaces workspace_updated_by_id_09d249ed_fk_user_id; Type: FK CONSTRAINT; Schema: public; Owner: plane -- ALTER TABLE ONLY workspaces - ADD CONSTRAINT workspace_updated_by_id_09d249ed_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED. - --- --- PostgreSQL database dump complete --- + ADD CONSTRAINT workspace_updated_by_id_09d249ed_fk_user_id FOREIGN KEY (updated_by_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED;