Compare commits

..

2 Commits

Author SHA1 Message Date
f3df409904 Add api tokens 2024-02-10 11:03:44 +01:00
c0b9ed0353 Add api tokens 2024-02-10 11:03:40 +01:00
96 changed files with 4682 additions and 4103 deletions

View File

@ -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<super::workspaces::Entity> 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 {}

View File

@ -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 {}

View File

@ -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<super::users::Entity> for Entity {
impl Related<super::importers::Entity> for Entity {
fn to() -> RelationDef {
Relation::Users.def()
Relation::Importers.def()
}
}
impl Related<super::workspace_integrations::Entity> for Entity {
fn to() -> RelationDef {
Relation::WorkspaceIntegrations.def()
}
}

View File

@ -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<super::auth_group_permissions::Entity> for Entity {
fn to() -> RelationDef {
Relation::AuthGroupPermissions.def()
}
}
impl Related<super::users_groups::Entity> for Entity {
fn to() -> RelationDef {
Relation::UsersGroups.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::auth_group::Entity> for Entity {
fn to() -> RelationDef {
Relation::AuthGroup.def()
}
}
impl Related<super::auth_permission::Entity> for Entity {
fn to() -> RelationDef {
Relation::AuthPermission.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::auth_group_permissions::Entity> for Entity {
fn to() -> RelationDef {
Relation::AuthGroupPermissions.def()
}
}
impl Related<super::django_content_type::Entity> for Entity {
fn to() -> RelationDef {
Relation::DjangoContentType.def()
}
}
impl Related<super::users_user_permissions::Entity> for Entity {
fn to() -> RelationDef {
Relation::UsersUserPermissions.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::users::Entity> 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 {}

View File

@ -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<super::issue_comments::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueComments.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::cycles::Entity> for Entity {
fn to() -> RelationDef {
Relation::Cycles.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::users::Entity> for Entity {
fn to() -> RelationDef {
Relation::Users.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -12,6 +12,7 @@ pub struct Model {
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub cycle_id: Uuid,
#[sea_orm(unique)]
pub issue_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
@ -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<super::cycles::Entity> for Entity {
fn to() -> RelationDef {
Relation::Cycles.def()
}
}
impl Related<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::cycle_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleFavorites.def()
}
}
impl Related<super::cycle_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleIssues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::django_celery_beat_periodictask::Entity> for Entity {
fn to() -> RelationDef {
Relation::DjangoCeleryBeatPeriodictask.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::django_celery_beat_periodictask::Entity> for Entity {
fn to() -> RelationDef {
Relation::DjangoCeleryBeatPeriodictask.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::django_celery_beat_periodictask::Entity> for Entity {
fn to() -> RelationDef {
Relation::DjangoCeleryBeatPeriodictask.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::django_celery_beat_clockedschedule::Entity> for Entity {
fn to() -> RelationDef {
Relation::DjangoCeleryBeatClockedschedule.def()
}
}
impl Related<super::django_celery_beat_crontabschedule::Entity> for Entity {
fn to() -> RelationDef {
Relation::DjangoCeleryBeatCrontabschedule.def()
}
}
impl Related<super::django_celery_beat_intervalschedule::Entity> for Entity {
fn to() -> RelationDef {
Relation::DjangoCeleryBeatIntervalschedule.def()
}
}
impl Related<super::django_celery_beat_solarschedule::Entity> for Entity {
fn to() -> RelationDef {
Relation::DjangoCeleryBeatSolarschedule.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::django_celery_beat_periodictask::Entity> for Entity {
fn to() -> RelationDef {
Relation::DjangoCeleryBeatPeriodictask.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::auth_permission::Entity> for Entity {
fn to() -> RelationDef {
Relation::AuthPermission.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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 {}

View File

@ -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<super::estimates::Entity> for Entity {
fn to() -> RelationDef {
Relation::Estimates.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::estimate_points::Entity> for Entity {
fn to() -> RelationDef {
Relation::EstimatePoints.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -18,6 +18,7 @@ pub struct Model {
#[sea_orm(column_type = "Text")]
pub key: String,
pub url: Option<String>,
#[sea_orm(unique)]
pub token: String,
pub created_by_id: Option<Uuid>,
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<super::workspaces::Entity> 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 {}

View File

@ -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<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::github_issue_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
Relation::GithubIssueSyncs.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
impl Related<super::issue_comments::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::IssueComments.def()
}
}

View File

@ -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<super::issues::Entity> for Entity {
impl Related<super::github_comment_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
Relation::GithubCommentSyncs.def()
}
}
impl Related<super::projects::Entity> for Entity {
impl Related<super::github_repository_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::GithubRepositorySyncs.def()
}
}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::github_repository_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::GithubRepositorySyncs.def()
}
}

View File

@ -16,6 +16,7 @@ pub struct Model {
pub created_by_id: Option<Uuid>,
pub label_id: Option<Uuid>,
pub project_id: Uuid,
#[sea_orm(unique)]
pub repository_id: Uuid,
pub updated_by_id: Option<Uuid>,
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<super::projects::Entity> for Entity {
impl Related<super::github_issue_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
Relation::GithubIssueSyncs.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
impl Related<super::github_repositories::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::GithubRepositories.def()
}
}
impl Related<super::labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::Labels.def()
}
}
impl Related<super::workspace_integrations::Entity> for Entity {
fn to() -> RelationDef {
Relation::WorkspaceIntegrations.def()
}
}

View File

@ -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<super::workspaces::Entity> 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 {}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::api_tokens::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::ApiTokens.def()
}
}

View File

@ -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<super::issues::Entity> for Entity {
impl Related<super::inboxes::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Inboxes.def()
}
}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::inbox_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
Relation::InboxIssues.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
impl Related<super::project_deploy_boards::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::ProjectDeployBoards.def()
}
}

View File

@ -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<super::instances::Entity> for Entity {
fn to() -> RelationDef {
Relation::Instances.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<String>,
@ -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 {}

View File

@ -13,6 +13,7 @@ pub struct Model {
pub instance_name: String,
#[sea_orm(column_type = "Text", nullable)]
pub whitelist_emails: Option<String>,
#[sea_orm(unique)]
pub instance_id: String,
pub license_key: Option<String>,
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<super::instance_admins::Entity> for Entity {
fn to() -> RelationDef {
Relation::InstanceAdmins.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::workspace_integrations::Entity> for Entity {
fn to() -> RelationDef {
Relation::WorkspaceIntegrations.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::issue_comments::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
Relation::IssueComments.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
impl Related<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Issues.def()
}
}

View File

@ -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<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::comment_reactions::Entity> for Entity {
impl Related<super::github_comment_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::CommentReactions.def()
Relation::GithubCommentSyncs.def()
}
}
impl Related<super::issues::Entity> for Entity {
impl Related<super::issue_activities::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::IssueActivities.def()
}
}

View File

@ -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<super::issues::Entity> for Entity {
impl Related<super::labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Labels.def()
}
}

View File

@ -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<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Issues.def()
}
}

View File

@ -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<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::view_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::ViewFavorites.def()
}
}

View File

@ -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<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::cycle_issues::Entity> for Entity {
impl Related<super::issue_activities::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleIssues.def()
Relation::IssueActivities.def()
}
}
impl Related<super::github_issue_syncs::Entity> for Entity {
impl Related<super::issue_sequences::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubIssueSyncs.def()
Relation::IssueSequences.def()
}
}
impl Related<super::inbox_issues::Entity> for Entity {
impl Related<super::page_blocks::Entity> for Entity {
fn to() -> RelationDef {
Relation::InboxIssues.def()
Relation::PageBlocks.def()
}
}
impl Related<super::issue_assignees::Entity> for Entity {
impl Related<super::states::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueAssignees.def()
}
}
impl Related<super::issue_attachments::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueAttachments.def()
}
}
impl Related<super::issue_comments::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueComments.def()
}
}
impl Related<super::issue_labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueLabels.def()
}
}
impl Related<super::issue_links::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueLinks.def()
}
}
impl Related<super::issue_mentions::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueMentions.def()
}
}
impl Related<super::issue_reactions::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueReactions.def()
}
}
impl Related<super::issue_subscribers::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueSubscribers.def()
}
}
impl Related<super::issue_votes::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueVotes.def()
}
}
impl Related<super::module_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleIssues.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::States.def()
}
}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::github_repository_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
Relation::GithubRepositorySyncs.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
impl Related<super::issue_labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::IssueLabels.def()
}
}
impl Related<super::page_labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageLabels.def()
}
}

View File

@ -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;

View File

@ -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<super::modules::Entity> for Entity {
fn to() -> RelationDef {
Relation::Modules.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -11,6 +11,7 @@ pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
#[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<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::modules::Entity> for Entity {
fn to() -> RelationDef {
Relation::Modules.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::modules::Entity> for Entity {
fn to() -> RelationDef {
Relation::Modules.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::modules::Entity> for Entity {
fn to() -> RelationDef {
Relation::Modules.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::module_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleFavorites.def()
}
}
impl Related<super::module_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleIssues.def()
}
}
impl Related<super::module_links::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleLinks.def()
}
}
impl Related<super::module_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleMembers.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::workspaces::Entity> for Entity {
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Projects.def()
}
}

View File

@ -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<super::pages::Entity> for Entity {
impl Related<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Pages.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Issues.def()
}
}

View File

@ -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<super::pages::Entity> for Entity {
fn to() -> RelationDef {
Relation::Pages.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::pages::Entity> for Entity {
impl Related<super::labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::Pages.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Labels.def()
}
}

View File

@ -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<super::pages::Entity> for Entity {
fn to() -> RelationDef {
Relation::Pages.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::page_blocks::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageBlocks.def()
}
}
impl Related<super::page_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageFavorites.def()
}
}
impl Related<super::page_labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageLabels.def()
}
}
impl Related<super::page_logs::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageLogs.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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;

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::inboxes::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Inboxes.def()
}
}

View File

@ -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<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -12,6 +12,7 @@ pub struct Model {
pub updated_at: DateTimeWithTimeZone,
pub name: String,
pub created_by_id: Option<Uuid>,
#[sea_orm(unique)]
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Option<Uuid>,
@ -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<super::projects::Entity> for Entity {
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
Relation::Workspaces.def()
}
}

View File

@ -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<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> 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 {}

View File

@ -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<super::comment_reactions::Entity> for Entity {
fn to() -> RelationDef {
Relation::CommentReactions.def()
}
}
impl Related<super::cycle_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleFavorites.def()
}
}
impl Related<super::cycle_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleIssues.def()
}
}
impl Related<super::cycles::Entity> for Entity {
fn to() -> RelationDef {
Relation::Cycles.def()
}
}
impl Related<super::estimate_points::Entity> 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<super::estimates::Entity> for Entity {
@ -185,249 +115,9 @@ impl Related<super::estimates::Entity> for Entity {
}
}
impl Related<super::github_comment_syncs::Entity> for Entity {
impl Related<super::notifications::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubCommentSyncs.def()
}
}
impl Related<super::github_issue_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubIssueSyncs.def()
}
}
impl Related<super::github_repositories::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubRepositories.def()
}
}
impl Related<super::github_repository_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubRepositorySyncs.def()
}
}
impl Related<super::importers::Entity> for Entity {
fn to() -> RelationDef {
Relation::Importers.def()
}
}
impl Related<super::inbox_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::InboxIssues.def()
}
}
impl Related<super::inboxes::Entity> for Entity {
fn to() -> RelationDef {
Relation::Inboxes.def()
}
}
impl Related<super::issue_activities::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueActivities.def()
}
}
impl Related<super::issue_assignees::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueAssignees.def()
}
}
impl Related<super::issue_attachments::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueAttachments.def()
}
}
impl Related<super::issue_blockers::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueBlockers.def()
}
}
impl Related<super::issue_comments::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueComments.def()
}
}
impl Related<super::issue_labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueLabels.def()
}
}
impl Related<super::issue_links::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueLinks.def()
}
}
impl Related<super::issue_mentions::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueMentions.def()
}
}
impl Related<super::issue_properties::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueProperties.def()
}
}
impl Related<super::issue_reactions::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueReactions.def()
}
}
impl Related<super::issue_relations::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueRelations.def()
}
}
impl Related<super::issue_sequences::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueSequences.def()
}
}
impl Related<super::issue_subscribers::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueSubscribers.def()
}
}
impl Related<super::issue_views::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueViews.def()
}
}
impl Related<super::issue_votes::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueVotes.def()
}
}
impl Related<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::Labels.def()
}
}
impl Related<super::module_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleFavorites.def()
}
}
impl Related<super::module_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleIssues.def()
}
}
impl Related<super::module_links::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleLinks.def()
}
}
impl Related<super::module_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleMembers.def()
}
}
impl Related<super::modules::Entity> for Entity {
fn to() -> RelationDef {
Relation::Modules.def()
}
}
impl Related<super::page_blocks::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageBlocks.def()
}
}
impl Related<super::page_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageFavorites.def()
}
}
impl Related<super::page_labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageLabels.def()
}
}
impl Related<super::page_logs::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageLogs.def()
}
}
impl Related<super::pages::Entity> for Entity {
fn to() -> RelationDef {
Relation::Pages.def()
}
}
impl Related<super::project_deploy_boards::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectDeployBoards.def()
}
}
impl Related<super::project_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectFavorites.def()
}
}
impl Related<super::project_identifiers::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectIdentifiers.def()
}
}
impl Related<super::project_member_invites::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectMemberInvites.def()
}
}
impl Related<super::project_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectMembers.def()
}
}
impl Related<super::project_public_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectPublicMembers.def()
}
}
impl Related<super::slack_project_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::SlackProjectSyncs.def()
Relation::Notifications.def()
}
}
@ -437,16 +127,4 @@ impl Related<super::states::Entity> for Entity {
}
}
impl Related<super::view_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::ViewFavorites.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::workspace_integrations::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::WorkspaceIntegrations.def()
}
}

View File

@ -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 {}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Issues.def()
}
}

View File

@ -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<super::workspaces::Entity> for Entity {
impl Related<super::teams::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Teams.def()
}
}

View File

@ -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<super::workspaces::Entity> for Entity {
impl Related<super::team_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::TeamMembers.def()
}
}

View File

@ -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<super::token_blacklist_outstandingtoken::Entity> for Entity {
fn to() -> RelationDef {
Relation::TokenBlacklistOutstandingtoken.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -13,10 +13,34 @@ pub struct Model {
pub created_at: Option<DateTimeWithTimeZone>,
pub expires_at: DateTimeWithTimeZone,
pub user_id: Option<Uuid>,
#[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<super::token_blacklist_blacklistedtoken::Entity> for Entity {
fn to() -> RelationDef {
Relation::TokenBlacklistBlacklistedtoken.def()
}
}
impl Related<super::users::Entity> for Entity {
fn to() -> RelationDef {
Relation::Users.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -10,8 +10,10 @@ pub struct Model {
pub last_login: Option<DateTimeWithTimeZone>,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(unique)]
pub username: String,
pub mobile_number: Option<String>,
#[sea_orm(unique)]
pub email: Option<String>,
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<super::api_tokens::Entity> for Entity {
impl Related<super::token_blacklist_outstandingtoken::Entity> for Entity {
fn to() -> RelationDef {
Relation::ApiTokens.def()
Relation::TokenBlacklistOutstandingtoken.def()
}
}
impl Related<super::authtoken_token::Entity> for Entity {
impl Related<super::users_groups::Entity> for Entity {
fn to() -> RelationDef {
Relation::AuthtokenToken.def()
Relation::UsersGroups.def()
}
}
impl Related<super::cycle_favorites::Entity> for Entity {
impl Related<super::users_user_permissions::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleFavorites.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::UsersUserPermissions.def()
}
}

View File

@ -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<super::auth_group::Entity> for Entity {
fn to() -> RelationDef {
Relation::AuthGroup.def()
}
}
impl Related<super::users::Entity> for Entity {
fn to() -> RelationDef {
Relation::Users.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::auth_permission::Entity> for Entity {
fn to() -> RelationDef {
Relation::AuthPermission.def()
}
}
impl Related<super::users::Entity> for Entity {
fn to() -> RelationDef {
Relation::Users.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -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<super::projects::Entity> for Entity {
impl Related<super::issue_views::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::IssueViews.def()
}
}

View File

@ -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<super::workspaces::Entity> for Entity {
impl Related<super::webhooks::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::Webhooks.def()
}
}

View File

@ -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<super::workspaces::Entity> for Entity {
impl Related<super::webhook_logs::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::WebhookLogs.def()
}
}

View File

@ -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<super::workspaces::Entity> for Entity {
impl Related<super::api_tokens::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
Relation::ApiTokens.def()
}
}
impl Related<super::github_repository_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubRepositorySyncs.def()
}
}
impl Related<super::integrations::Entity> for Entity {
fn to() -> RelationDef {
Relation::Integrations.def()
}
}
impl Related<super::slack_project_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::SlackProjectSyncs.def()
}
}

View File

@ -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<super::workspaces::Entity> 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 {}

View File

@ -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<super::workspaces::Entity> 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 {}

View File

@ -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<super::workspaces::Entity> 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 {}

View File

@ -12,6 +12,7 @@ pub struct Model {
pub id: Uuid,
pub name: String,
pub logo: Option<String>,
#[sea_orm(unique)]
pub slug: String,
pub created_by_id: Option<Uuid>,
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<super::analytic_views::Entity> for Entity {
impl Related<super::file_assets::Entity> for Entity {
fn to() -> RelationDef {
Relation::AnalyticViews.def()
Relation::FileAssets.def()
}
}
impl Related<super::comment_reactions::Entity> for Entity {
impl Related<super::project_identifiers::Entity> for Entity {
fn to() -> RelationDef {
Relation::CommentReactions.def()
}
}
impl Related<super::cycle_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleFavorites.def()
}
}
impl Related<super::cycle_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleIssues.def()
}
}
impl Related<super::cycles::Entity> for Entity {
fn to() -> RelationDef {
Relation::Cycles.def()
}
}
impl Related<super::estimate_points::Entity> for Entity {
fn to() -> RelationDef {
Relation::EstimatePoints.def()
}
}
impl Related<super::estimates::Entity> for Entity {
fn to() -> RelationDef {
Relation::Estimates.def()
}
}
impl Related<super::exporters::Entity> for Entity {
fn to() -> RelationDef {
Relation::Exporters.def()
}
}
impl Related<super::github_comment_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubCommentSyncs.def()
}
}
impl Related<super::github_issue_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubIssueSyncs.def()
}
}
impl Related<super::github_repositories::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubRepositories.def()
}
}
impl Related<super::github_repository_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubRepositorySyncs.def()
}
}
impl Related<super::global_views::Entity> for Entity {
fn to() -> RelationDef {
Relation::GlobalViews.def()
}
}
impl Related<super::importers::Entity> for Entity {
fn to() -> RelationDef {
Relation::Importers.def()
}
}
impl Related<super::inbox_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::InboxIssues.def()
}
}
impl Related<super::inboxes::Entity> for Entity {
fn to() -> RelationDef {
Relation::Inboxes.def()
}
}
impl Related<super::issue_activities::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueActivities.def()
}
}
impl Related<super::issue_assignees::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueAssignees.def()
}
}
impl Related<super::issue_attachments::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueAttachments.def()
}
}
impl Related<super::issue_blockers::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueBlockers.def()
}
}
impl Related<super::issue_comments::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueComments.def()
}
}
impl Related<super::issue_labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueLabels.def()
}
}
impl Related<super::issue_links::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueLinks.def()
}
}
impl Related<super::issue_mentions::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueMentions.def()
}
}
impl Related<super::issue_properties::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueProperties.def()
}
}
impl Related<super::issue_reactions::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueReactions.def()
}
}
impl Related<super::issue_relations::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueRelations.def()
}
}
impl Related<super::issue_sequences::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueSequences.def()
}
}
impl Related<super::issue_subscribers::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueSubscribers.def()
}
}
impl Related<super::issue_views::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueViews.def()
}
}
impl Related<super::issue_votes::Entity> for Entity {
fn to() -> RelationDef {
Relation::IssueVotes.def()
}
}
impl Related<super::issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::Issues.def()
}
}
impl Related<super::labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::Labels.def()
}
}
impl Related<super::module_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleFavorites.def()
}
}
impl Related<super::module_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleIssues.def()
}
}
impl Related<super::module_links::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleLinks.def()
}
}
impl Related<super::module_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::ModuleMembers.def()
}
}
impl Related<super::modules::Entity> for Entity {
fn to() -> RelationDef {
Relation::Modules.def()
}
}
impl Related<super::notifications::Entity> for Entity {
fn to() -> RelationDef {
Relation::Notifications.def()
}
}
impl Related<super::page_blocks::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageBlocks.def()
}
}
impl Related<super::page_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageFavorites.def()
}
}
impl Related<super::page_labels::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageLabels.def()
}
}
impl Related<super::page_logs::Entity> for Entity {
fn to() -> RelationDef {
Relation::PageLogs.def()
}
}
impl Related<super::pages::Entity> for Entity {
fn to() -> RelationDef {
Relation::Pages.def()
}
}
impl Related<super::project_deploy_boards::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectDeployBoards.def()
}
}
impl Related<super::project_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectFavorites.def()
}
}
impl Related<super::project_member_invites::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectMemberInvites.def()
}
}
impl Related<super::project_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectMembers.def()
}
}
impl Related<super::project_public_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::ProjectPublicMembers.def()
}
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl Related<super::slack_project_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::SlackProjectSyncs.def()
}
}
impl Related<super::states::Entity> for Entity {
fn to() -> RelationDef {
Relation::States.def()
}
}
impl Related<super::team_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::TeamMembers.def()
}
}
impl Related<super::teams::Entity> for Entity {
fn to() -> RelationDef {
Relation::Teams.def()
}
}
impl Related<super::users::Entity> for Entity {
fn to() -> RelationDef {
Relation::Users.def()
}
}
impl Related<super::view_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::ViewFavorites.def()
}
}
impl Related<super::webhook_logs::Entity> for Entity {
fn to() -> RelationDef {
Relation::WebhookLogs.def()
}
}
impl Related<super::webhooks::Entity> for Entity {
fn to() -> RelationDef {
Relation::Webhooks.def()
}
}
impl Related<super::workspace_integrations::Entity> for Entity {
fn to() -> RelationDef {
Relation::WorkspaceIntegrations.def()
}
}
impl Related<super::workspace_member_invites::Entity> for Entity {
fn to() -> RelationDef {
Relation::WorkspaceMemberInvites.def()
}
}
impl Related<super::workspace_members::Entity> for Entity {
fn to() -> RelationDef {
Relation::WorkspaceMembers.def()
}
}
impl Related<super::workspace_themes::Entity> for Entity {
fn to() -> RelationDef {
Relation::WorkspaceThemes.def()
Relation::ProjectIdentifiers.def()
}
}

View File

@ -1,3 +1,5 @@
pub mod require_instance;
pub mod user;
pub use require_instance::*;
pub use user::*;

View File

@ -0,0 +1,26 @@
use actix_web::web::Data;
use actix_web::FromRequest;
use derive_more::Deref;
use entities::prelude::Users;
use entities::users::*;
use futures_util::future::LocalBoxFuture;
use crate::utils::uidb::Unauthorized;
use crate::DatabaseConnection;
#[derive(Debug, Deref)]
pub struct RequireUser(pub Model);
impl FromRequest for RequireUser {
type Error = Unauthorized;
type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>;
fn from_request(
req: &actix_web::HttpRequest,
payload: &mut actix_web::dev::Payload,
) -> Self::Future {
let db = req.app_data::<Data<DatabaseConnection>>().cloned();
todo!()
}
}

View File

@ -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);
}),
);
}

View File

@ -0,0 +1,57 @@
use actix_jwt_session::Authenticated;
use actix_web::web::{Data, Path, ServiceConfig};
use actix_web::{get, HttpResponse};
use entities::api_tokens::*;
use entities::prelude::ApiTokens;
use jet_contract::{ApiTokenId, WorkspaceSlug};
use sea_orm::prelude::*;
use sea_orm::*;
use tracing::error;
use crate::extractors::RequireInstanceConfigured;
use crate::models::{Error, JsonError};
use crate::session::AppClaims;
use crate::DatabaseConnection;
pub fn configure(_: reqwest::Client, config: &mut ServiceConfig) {
config.service(single_api_token);
}
#[get("{workspace_slug}/api-tokens/{id}")]
async fn single_api_token(
_: RequireInstanceConfigured,
session: Authenticated<AppClaims>,
path: Path<(WorkspaceSlug, ApiTokenId)>,
db: Data<DatabaseConnection>,
) -> Result<HttpResponse, JsonError> {
let (slug, id) = path.into_inner();
let user = entities::prelude::Users::find_by_id(session.account_id())
.one(&**db)
.await
.map_err(|e| {
error!("Failed to load user: {e}");
Error::DatabaseError
})?
.ok_or(Error::UserRequired)?;
let slug = slug.as_str().to_string();
match ApiTokens::find()
.join(
JoinType::Join,
Relation::Workspaces1.def().on_condition(move |_left, right| {
use sea_query::*;
Expr::col((right, entities::workspaces::Column::Slug))
.eq(slug.clone())
.into_condition()
}),
)
.filter(Column::UserId.eq(user.id).and(Column::Id.eq(*id)))
.one(&**db)
.await
{
Ok(Some(token)) => Ok(HttpResponse::Ok().json(&token)),
Ok(None) => todo!(),
Err(e) => todo!(),
}
}

View File

@ -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,

File diff suppressed because it is too large Load Diff

702
plane_feed.sql Normal file
View File

@ -0,0 +1,702 @@
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: 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_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
\.
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 <adrian.wozniak@ita-prog.pl> 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_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
\.
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
\.
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
\.
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 <p></p> \N 65535 \N \N f \N \N
\.
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
\.
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
\.
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
\.
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 "" <h3>Title:</h3><p>Our Nightmares</p><h3>Engine:</h3><p>Godot 4</p><h3>Main plot:</h3><p>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.</p><p>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.</p><p>Na niebie natomiast powstała smuga, która jeśli się na nią patrzy zbyt długo powiększa się, 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ł.</p><h3>Concept:</h3><p>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.</p><p>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</p><p>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.</p><p>Jednostka, na którą się kliknie 5x spogląda w niebo i albo rozpada się albo zamienia w potwora.</p> \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 "" <p>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 <strong>Zasoby </strong> automatycznie gromadzone do późniejszego wykorzystania</p> \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 "" <p>Każdy potwór posiada unikalny sposób ataku, unikalne miejsce występowania, unikalny sposób znajdowania go oraz unikalny sposób pokonania go.</p><h3>Wilkołak</h3><p>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%.<br>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ść.</p><h3>Kikimora</h3><p><span>Zastawiwszy na zbłąkanego wędrowca pułapkę, napawała się jego agonią w przepastnych odmętach bagiennej topieli.</span></p> \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
\.
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
\.
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
\.
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
\.
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
\.
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
\.
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
\.