This commit is contained in:
eraden 2024-01-23 12:29:19 +01:00
commit 56ef7c9318
139 changed files with 19829 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/target
.env.development

4780
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

19
Cargo.toml Normal file
View File

@ -0,0 +1,19 @@
[workspace]
members = [
"crates/jet-space",
"crates/jet-api",
"crates/jet-bg",
"crates/jet-beat",
"crates/jet-contract",
"crates/jet-plug",
]
resolver = "2"
[workspace.dependencies]
jet-contract = { path = "./crates/jet-contract" }
jet-api = { path = "./crates/jet-api" }
jet-bg = { path = "./crates/jet-bg" }
jet-beat = { path = "./crates/jet-beat" }
jet-space = { path = "./crates/jet-space" }
jet-plug = { path = "./crates/jet-plug" }
entities = { path = "./crates/entities" }

BIN
config/jwt-decoding.bin Normal file

Binary file not shown.

BIN
config/jwt-encoding.bin Normal file

Binary file not shown.

View File

@ -0,0 +1,8 @@
[package]
name = "entities"
version = "0.1.0"
edition = "2021"
[dependencies]
sea-orm = { version = "0.12.11", features = ["postgres-array", "sqlx-all"] }
serde = "1.0.195"

View File

@ -0,0 +1,43 @@
//! `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 = "analytic_views")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
#[sea_orm(column_type = "JsonBinary")]
pub query: Json,
#[sea_orm(column_type = "JsonBinary")]
pub query_dict: Json,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,35 @@
//! `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 = "api_activity_logs")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub token_identifier: String,
pub path: String,
pub method: String,
#[sea_orm(column_type = "Text", nullable)]
pub query_params: Option<String>,
#[sea_orm(column_type = "Text", nullable)]
pub headers: Option<String>,
#[sea_orm(column_type = "Text", nullable)]
pub body: Option<String>,
pub response_code: i32,
#[sea_orm(column_type = "Text", nullable)]
pub response_body: Option<String>,
#[sea_orm(column_type = "custom(\"inet\")", nullable)]
pub ip_address: Option<String>,
pub user_agent: Option<String>,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,45 @@
//! `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 = "api_tokens")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub token: String,
pub label: String,
pub user_type: i16,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub user_id: Uuid,
pub workspace_id: Option<Uuid>,
#[sea_orm(column_type = "Text")]
pub description: String,
pub expired_at: Option<DateTimeWithTimeZone>,
pub is_active: bool,
pub last_used: Option<DateTimeWithTimeZone>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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::users::Entity> for Entity {
fn to() -> RelationDef {
Relation::Users.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,17 @@
//! `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 = "auth_group")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub name: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,18 @@
//! `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 = "auth_group_permissions")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub group_id: i32,
pub permission_id: i32,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,19 @@
//! `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 = "auth_permission")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub name: String,
pub content_type_id: i32,
pub codename: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,33 @@
//! `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 = "authtoken_token")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub key: String,
pub created: DateTimeWithTimeZone,
pub user_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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::users::Entity> for Entity {
fn to() -> RelationDef {
Relation::Users.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,68 @@
//! `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 = "comment_reactions")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub reaction: String,
pub actor_id: Uuid,
pub comment_id: Uuid,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,81 @@
//! `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 = "cycle_favorites")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub cycle_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub user_id: Uuid,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::cycles::Entity",
from = "Column::CycleId",
to = "super::cycles::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Cycles,
#[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::UserId",
to = "super::users::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Users,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,81 @@
//! `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 = "cycle_issues")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub cycle_id: Uuid,
pub issue_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::cycles::Entity",
from = "Column::CycleId",
to = "super::cycles::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Cycles,
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,79 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "cycles")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
pub start_date: Option<Date>,
pub end_date: Option<Date>,
pub created_by_id: Option<Uuid>,
pub owned_by_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub view_props: Json,
#[sea_orm(column_type = "Double")]
pub sort_order: f64,
pub external_id: Option<String>,
pub external_source: Option<String>,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,17 @@
//! `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_celery_beat_clockedschedule")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub clocked_time: DateTimeWithTimeZone,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,22 @@
//! `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_celery_beat_crontabschedule")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub minute: String,
pub hour: String,
pub day_of_week: String,
pub day_of_month: String,
pub month_of_year: String,
pub timezone: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,18 @@
//! `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_celery_beat_intervalschedule")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub every: i32,
pub period: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,42 @@
//! `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_celery_beat_periodictask")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub name: String,
pub task: String,
#[sea_orm(column_type = "Text")]
pub args: String,
#[sea_orm(column_type = "Text")]
pub kwargs: String,
pub queue: Option<String>,
pub exchange: Option<String>,
pub routing_key: Option<String>,
pub expires: Option<DateTimeWithTimeZone>,
pub enabled: bool,
pub last_run_at: Option<DateTimeWithTimeZone>,
pub total_run_count: i32,
pub date_changed: DateTimeWithTimeZone,
#[sea_orm(column_type = "Text")]
pub description: String,
pub crontab_id: Option<i32>,
pub interval_id: Option<i32>,
pub solar_id: Option<i32>,
pub one_off: bool,
pub start_time: Option<DateTimeWithTimeZone>,
pub priority: Option<i32>,
#[sea_orm(column_type = "Text")]
pub headers: String,
pub clocked_id: Option<i32>,
pub expire_seconds: Option<i32>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,18 @@
//! `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_celery_beat_periodictasks")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: i32,
pub ident: i16,
pub last_update: DateTimeWithTimeZone,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,21 @@
//! `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_celery_beat_solarschedule")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub event: String,
#[sea_orm(column_type = "Decimal(Some((9, 6)))")]
pub latitude: Decimal,
#[sea_orm(column_type = "Decimal(Some((9, 6)))")]
pub longitude: Decimal,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,18 @@
//! `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_content_type")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub app_label: String,
pub model: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,19 @@
//! `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

@ -0,0 +1,20 @@
//! `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_session")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub session_key: String,
#[sea_orm(column_type = "Text")]
pub session_data: String,
pub expire_date: DateTimeWithTimeZone,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,70 @@
//! `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 = "estimate_points")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub key: i32,
#[sea_orm(column_type = "Text")]
pub description: String,
pub value: String,
pub created_by_id: Option<Uuid>,
pub estimate_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::estimates::Entity",
from = "Column::EstimateId",
to = "super::estimates::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Estimates,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,62 @@
//! `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 = "estimates")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,46 @@
//! `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 = "exporters")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub project: Option<Vec<Uuid>>,
pub provider: String,
pub status: String,
#[sea_orm(column_type = "Text")]
pub reason: String,
#[sea_orm(column_type = "Text")]
pub key: String,
pub url: Option<String>,
pub token: String,
pub created_by_id: Option<Uuid>,
pub initiated_by_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,25 @@
//! `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 = "file_assets")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub attributes: Json,
pub asset: String,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Option<Uuid>,
pub is_deleted: bool,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,54 @@
//! `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 = "github_comment_syncs")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub repo_comment_id: i64,
pub comment_id: Uuid,
pub created_by_id: Option<Uuid>,
pub issue_sync_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,70 @@
//! `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 = "github_issue_syncs")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub repo_issue_id: i64,
pub github_issue_id: i64,
pub issue_url: String,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub project_id: Uuid,
pub repository_sync_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,57 @@
//! `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 = "github_repositories")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
pub url: Option<String>,
#[sea_orm(column_type = "JsonBinary")]
pub config: Json,
pub repository_id: i64,
pub owner: String,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,57 @@
//! `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 = "github_repository_syncs")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub credentials: Json,
pub actor_id: Uuid,
pub created_by_id: Option<Uuid>,
pub label_id: Option<Uuid>,
pub project_id: Uuid,
pub repository_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
pub workspace_integration_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,46 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "global_views")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
#[sea_orm(column_type = "JsonBinary")]
pub query: Json,
pub access: i16,
#[sea_orm(column_type = "JsonBinary")]
pub query_data: Json,
#[sea_orm(column_type = "Double")]
pub sort_order: f64,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,63 @@
//! `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 = "importers")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub service: String,
pub status: String,
#[sea_orm(column_type = "JsonBinary")]
pub metadata: Json,
#[sea_orm(column_type = "JsonBinary")]
pub config: Json,
#[sea_orm(column_type = "JsonBinary")]
pub data: Json,
pub created_by_id: Option<Uuid>,
pub initiated_by_id: Uuid,
pub project_id: Uuid,
pub token_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub imported_data: Option<Json>,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,74 @@
//! `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 = "inbox_issues")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub status: i32,
pub snoozed_till: Option<DateTimeWithTimeZone>,
#[sea_orm(column_type = "Text", nullable)]
pub source: Option<String>,
pub created_by_id: Option<Uuid>,
pub duplicate_to_id: Option<Uuid>,
pub inbox_id: Uuid,
pub issue_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
pub external_id: Option<String>,
pub external_source: Option<String>,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,57 @@
//! `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 = "inboxes")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
pub is_default: bool,
#[sea_orm(column_type = "JsonBinary")]
pub view_props: Json,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,25 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use super::sea_orm_active_enums::Roles;
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
#[sea_orm(table_name = "instance_admins")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub role: Roles,
pub is_verified: bool,
pub created_by_id: Option<Uuid>,
pub instance_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub user_id: Option<Uuid>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,26 @@
//! `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 = "instance_configurations")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub key: String,
#[sea_orm(column_type = "Text", nullable)]
pub value: Option<String>,
#[sea_orm(column_type = "Text")]
pub category: String,
pub is_encrypted: bool,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,35 @@
//! `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 = "instances")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub instance_name: String,
#[sea_orm(column_type = "Text", nullable)]
pub whitelist_emails: Option<String>,
pub instance_id: String,
pub license_key: Option<String>,
pub api_key: String,
pub version: String,
pub last_checked_at: DateTimeWithTimeZone,
pub namespace: Option<String>,
pub is_telemetry_enabled: bool,
pub is_support_required: bool,
pub is_setup_done: bool,
pub is_signup_screen_visited: bool,
pub user_count: i64,
pub is_verified: bool,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,36 @@
//! `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 = "integrations")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub title: String,
pub provider: String,
pub network: i32,
#[sea_orm(column_type = "JsonBinary")]
pub description: Json,
pub author: String,
#[sea_orm(column_type = "Text")]
pub webhook_url: String,
#[sea_orm(column_type = "Text")]
pub webhook_secret: String,
#[sea_orm(column_type = "Text")]
pub redirect_url: String,
#[sea_orm(column_type = "JsonBinary")]
pub metadata: Json,
pub verified: bool,
pub avatar_url: Option<String>,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,67 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "issue_activities")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub verb: String,
pub field: Option<String>,
#[sea_orm(column_type = "Text", nullable)]
pub old_value: Option<String>,
#[sea_orm(column_type = "Text", nullable)]
pub new_value: Option<String>,
#[sea_orm(column_type = "Text")]
pub comment: String,
pub attachments: Vec<String>,
pub created_by_id: Option<Uuid>,
pub issue_id: Option<Uuid>,
pub issue_comment_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
pub actor_id: Option<Uuid>,
pub new_identifier: Option<Uuid>,
pub old_identifier: Option<Uuid>,
#[sea_orm(column_type = "Double", nullable)]
pub epoch: Option<f64>,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,67 @@
//! `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 = "issue_assignees")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub assignee_id: Uuid,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,69 @@
//! `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 = "issue_attachments")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub attributes: Json,
pub asset: String,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,53 @@
//! `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 = "issue_blockers")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub block_id: Uuid,
pub blocked_by_id: Uuid,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,85 @@
//! `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 = "issue_comments")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(column_type = "Text")]
pub comment_stripped: String,
pub attachments: Vec<String>,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
pub actor_id: Option<Uuid>,
#[sea_orm(column_type = "Text")]
pub comment_html: String,
#[sea_orm(column_type = "JsonBinary")]
pub comment_json: Json,
pub access: String,
pub external_id: Option<String>,
pub external_source: Option<String>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(has_many = "super::comment_reactions::Entity")]
CommentReactions,
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::comment_reactions::Entity> for Entity {
fn to() -> RelationDef {
Relation::CommentReactions.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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,67 @@
//! `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 = "issue_labels")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub label_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,70 @@
//! `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 = "issue_links")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub title: Option<String>,
pub url: String,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub metadata: Json,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,67 @@
//! `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 = "issue_mentions")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub mention_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,54 @@
//! `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 = "issue_properties")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub properties: Json,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub user_id: Uuid,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,68 @@
//! `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 = "issue_reactions")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub reaction: String,
pub actor_id: Uuid,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,70 @@
//! `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 = "issue_relations")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub relation_type: String,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub project_id: Uuid,
pub related_issue_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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"
)]
Issues2,
#[sea_orm(
belongs_to = "super::issues::Entity",
from = "Column::RelatedIssueId",
to = "super::issues::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Issues1,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,54 @@
//! `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 = "issue_sequences")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub sequence: i64,
pub deleted: bool,
pub created_by_id: Option<Uuid>,
pub issue_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,67 @@
//! `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 = "issue_subscribers")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub project_id: Uuid,
pub subscriber_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,59 @@
//! `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 = "issue_views")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
#[sea_orm(column_type = "JsonBinary")]
pub query: Json,
pub access: i16,
#[sea_orm(column_type = "JsonBinary")]
pub query_data: Json,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,68 @@
//! `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 = "issue_votes")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub vote: i32,
pub actor_id: Uuid,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,176 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "issues")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "JsonBinary")]
pub description: Json,
pub priority: String,
pub start_date: Option<Date>,
pub target_date: Option<Date>,
pub sequence_id: i32,
pub created_by_id: Option<Uuid>,
pub parent_id: Option<Uuid>,
pub project_id: Uuid,
pub state_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "Text")]
pub description_html: String,
#[sea_orm(column_type = "Text", nullable)]
pub description_stripped: Option<String>,
pub completed_at: Option<DateTimeWithTimeZone>,
#[sea_orm(column_type = "Double")]
pub sort_order: f64,
pub estimate_point: Option<i32>,
pub archived_at: Option<Date>,
pub is_draft: bool,
pub external_id: Option<String>,
pub external_source: Option<String>,
}
#[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(
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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Workspaces,
}
impl Related<super::cycle_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleIssues.def()
}
}
impl Related<super::github_issue_syncs::Entity> for Entity {
fn to() -> RelationDef {
Relation::GithubIssueSyncs.def()
}
}
impl Related<super::inbox_issues::Entity> for Entity {
fn to() -> RelationDef {
Relation::InboxIssues.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_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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,60 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "labels")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
pub parent_id: Option<Uuid>,
pub color: String,
#[sea_orm(column_type = "Double")]
pub sort_order: f64,
pub external_id: Option<String>,
pub external_source: Option<String>,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,94 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
pub mod prelude;
pub mod analytic_views;
pub mod api_activity_logs;
pub mod api_tokens;
pub mod auth_group;
pub mod auth_group_permissions;
pub mod auth_permission;
pub mod authtoken_token;
pub mod comment_reactions;
pub mod cycle_favorites;
pub mod cycle_issues;
pub mod cycles;
pub mod django_celery_beat_clockedschedule;
pub mod django_celery_beat_crontabschedule;
pub mod django_celery_beat_intervalschedule;
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;
pub mod exporters;
pub mod file_assets;
pub mod github_comment_syncs;
pub mod github_issue_syncs;
pub mod github_repositories;
pub mod github_repository_syncs;
pub mod global_views;
pub mod importers;
pub mod inbox_issues;
pub mod inboxes;
pub mod instance_admins;
pub mod instance_configurations;
pub mod instances;
pub mod integrations;
pub mod issue_activities;
pub mod issue_assignees;
pub mod issue_attachments;
pub mod issue_blockers;
pub mod issue_comments;
pub mod issue_labels;
pub mod issue_links;
pub mod issue_mentions;
pub mod issue_properties;
pub mod issue_reactions;
pub mod issue_relations;
pub mod issue_sequences;
pub mod issue_subscribers;
pub mod issue_views;
pub mod issue_votes;
pub mod issues;
pub mod labels;
pub mod module_favorites;
pub mod module_issues;
pub mod module_links;
pub mod module_members;
pub mod modules;
pub mod notifications;
pub mod page_blocks;
pub mod page_favorites;
pub mod page_labels;
pub mod page_logs;
pub mod pages;
pub mod project_deploy_boards;
pub mod project_favorites;
pub mod project_identifiers;
pub mod project_member_invites;
pub mod project_members;
pub mod project_public_members;
pub mod projects;
pub mod sea_orm_active_enums;
pub mod slack_project_syncs;
pub mod social_login_connections;
pub mod states;
pub mod team_members;
pub mod teams;
pub mod token_blacklist_blacklistedtoken;
pub mod token_blacklist_outstandingtoken;
pub mod users;
pub mod users_groups;
pub mod users_user_permissions;
pub mod view_favorites;
pub mod webhook_logs;
pub mod webhooks;
pub mod workspace_integrations;
pub mod workspace_member_invites;
pub mod workspace_members;
pub mod workspace_themes;
pub mod workspaces;

View File

@ -0,0 +1,67 @@
//! `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 = "module_favorites")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub module_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub user_id: Uuid,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::modules::Entity",
from = "Column::ModuleId",
to = "super::modules::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Modules,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,81 @@
//! `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 = "module_issues")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub issue_id: Uuid,
pub module_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::modules::Entity",
from = "Column::ModuleId",
to = "super::modules::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Modules,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,70 @@
//! `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 = "module_links")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub title: Option<String>,
pub url: String,
pub created_by_id: Option<Uuid>,
pub module_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub metadata: Json,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::modules::Entity",
from = "Column::ModuleId",
to = "super::modules::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Modules,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,67 @@
//! `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 = "module_members")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub member_id: Uuid,
pub module_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::modules::Entity",
from = "Column::ModuleId",
to = "super::modules::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Modules,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,100 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "modules")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub description_text: Option<Json>,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub description_html: Option<Json>,
pub start_date: Option<Date>,
pub target_date: Option<Date>,
pub status: String,
pub created_by_id: Option<Uuid>,
pub lead_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub view_props: Json,
#[sea_orm(column_type = "Double")]
pub sort_order: f64,
pub external_id: Option<String>,
pub external_source: Option<String>,
}
#[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",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,55 @@
//! `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 = "notifications")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub data: Option<Json>,
pub entity_identifier: Option<Uuid>,
pub entity_name: String,
#[sea_orm(column_type = "Text")]
pub title: String,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub message: Option<Json>,
#[sea_orm(column_type = "Text")]
pub message_html: String,
#[sea_orm(column_type = "Text", nullable)]
pub message_stripped: Option<String>,
pub sender: String,
pub read_at: Option<DateTimeWithTimeZone>,
pub snoozed_till: Option<DateTimeWithTimeZone>,
pub archived_at: Option<DateTimeWithTimeZone>,
pub created_by_id: Option<Uuid>,
pub project_id: Option<Uuid>,
pub receiver_id: Uuid,
pub triggered_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,78 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "page_blocks")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "JsonBinary")]
pub description: Json,
#[sea_orm(column_type = "Text")]
pub description_html: String,
#[sea_orm(column_type = "Text", nullable)]
pub description_stripped: Option<String>,
pub completed_at: Option<DateTimeWithTimeZone>,
pub created_by_id: Option<Uuid>,
pub issue_id: Option<Uuid>,
pub page_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "Double")]
pub sort_order: f64,
pub sync: bool,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::pages::Entity",
from = "Column::PageId",
to = "super::pages::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Pages,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,67 @@
//! `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 = "page_favorites")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub page_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub user_id: Uuid,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::pages::Entity",
from = "Column::PageId",
to = "super::pages::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Pages,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,67 @@
//! `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 = "page_labels")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub label_id: Uuid,
pub page_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::pages::Entity",
from = "Column::PageId",
to = "super::pages::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Pages,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,69 @@
//! `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 = "page_logs")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub transaction: Uuid,
pub entity_identifier: Option<Uuid>,
pub entity_name: String,
pub created_by_id: Option<Uuid>,
pub page_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[sea_orm(
belongs_to = "super::pages::Entity",
from = "Column::PageId",
to = "super::pages::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Pages,
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,96 @@
//! `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 = "pages")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "JsonBinary")]
pub description: Json,
#[sea_orm(column_type = "Text")]
pub description_html: String,
#[sea_orm(column_type = "Text", nullable)]
pub description_stripped: Option<String>,
pub access: i16,
pub created_by_id: Option<Uuid>,
pub owned_by_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
pub color: String,
pub archived_at: Option<Date>,
pub is_locked: bool,
pub parent_id: Option<Uuid>,
}
#[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 = "super::projects::Entity",
from = "Column::ProjectId",
to = "super::projects::Column::Id",
on_update = "NoAction",
on_delete = "NoAction"
)]
Projects,
#[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::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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,91 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
pub use super::analytic_views::Entity as AnalyticViews;
pub use super::api_activity_logs::Entity as ApiActivityLogs;
pub use super::api_tokens::Entity as ApiTokens;
pub use super::auth_group::Entity as AuthGroup;
pub use super::auth_group_permissions::Entity as AuthGroupPermissions;
pub use super::auth_permission::Entity as AuthPermission;
pub use super::authtoken_token::Entity as AuthtokenToken;
pub use super::comment_reactions::Entity as CommentReactions;
pub use super::cycle_favorites::Entity as CycleFavorites;
pub use super::cycle_issues::Entity as CycleIssues;
pub use super::cycles::Entity as Cycles;
pub use super::django_celery_beat_clockedschedule::Entity as DjangoCeleryBeatClockedschedule;
pub use super::django_celery_beat_crontabschedule::Entity as DjangoCeleryBeatCrontabschedule;
pub use super::django_celery_beat_intervalschedule::Entity as DjangoCeleryBeatIntervalschedule;
pub use super::django_celery_beat_periodictask::Entity as DjangoCeleryBeatPeriodictask;
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;
pub use super::exporters::Entity as Exporters;
pub use super::file_assets::Entity as FileAssets;
pub use super::github_comment_syncs::Entity as GithubCommentSyncs;
pub use super::github_issue_syncs::Entity as GithubIssueSyncs;
pub use super::github_repositories::Entity as GithubRepositories;
pub use super::github_repository_syncs::Entity as GithubRepositorySyncs;
pub use super::global_views::Entity as GlobalViews;
pub use super::importers::Entity as Importers;
pub use super::inbox_issues::Entity as InboxIssues;
pub use super::inboxes::Entity as Inboxes;
pub use super::instance_admins::Entity as InstanceAdmins;
pub use super::instance_configurations::Entity as InstanceConfigurations;
pub use super::instances::Entity as Instances;
pub use super::integrations::Entity as Integrations;
pub use super::issue_activities::Entity as IssueActivities;
pub use super::issue_assignees::Entity as IssueAssignees;
pub use super::issue_attachments::Entity as IssueAttachments;
pub use super::issue_blockers::Entity as IssueBlockers;
pub use super::issue_comments::Entity as IssueComments;
pub use super::issue_labels::Entity as IssueLabels;
pub use super::issue_links::Entity as IssueLinks;
pub use super::issue_mentions::Entity as IssueMentions;
pub use super::issue_properties::Entity as IssueProperties;
pub use super::issue_reactions::Entity as IssueReactions;
pub use super::issue_relations::Entity as IssueRelations;
pub use super::issue_sequences::Entity as IssueSequences;
pub use super::issue_subscribers::Entity as IssueSubscribers;
pub use super::issue_views::Entity as IssueViews;
pub use super::issue_votes::Entity as IssueVotes;
pub use super::issues::Entity as Issues;
pub use super::labels::Entity as Labels;
pub use super::module_favorites::Entity as ModuleFavorites;
pub use super::module_issues::Entity as ModuleIssues;
pub use super::module_links::Entity as ModuleLinks;
pub use super::module_members::Entity as ModuleMembers;
pub use super::modules::Entity as Modules;
pub use super::notifications::Entity as Notifications;
pub use super::page_blocks::Entity as PageBlocks;
pub use super::page_favorites::Entity as PageFavorites;
pub use super::page_labels::Entity as PageLabels;
pub use super::page_logs::Entity as PageLogs;
pub use super::pages::Entity as Pages;
pub use super::project_deploy_boards::Entity as ProjectDeployBoards;
pub use super::project_favorites::Entity as ProjectFavorites;
pub use super::project_identifiers::Entity as ProjectIdentifiers;
pub use super::project_member_invites::Entity as ProjectMemberInvites;
pub use super::project_members::Entity as ProjectMembers;
pub use super::project_public_members::Entity as ProjectPublicMembers;
pub use super::projects::Entity as Projects;
pub use super::slack_project_syncs::Entity as SlackProjectSyncs;
pub use super::social_login_connections::Entity as SocialLoginConnections;
pub use super::states::Entity as States;
pub use super::team_members::Entity as TeamMembers;
pub use super::teams::Entity as Teams;
pub use super::token_blacklist_blacklistedtoken::Entity as TokenBlacklistBlacklistedtoken;
pub use super::token_blacklist_outstandingtoken::Entity as TokenBlacklistOutstandingtoken;
pub use super::users::Entity as Users;
pub use super::users_groups::Entity as UsersGroups;
pub use super::users_user_permissions::Entity as UsersUserPermissions;
pub use super::view_favorites::Entity as ViewFavorites;
pub use super::webhook_logs::Entity as WebhookLogs;
pub use super::webhooks::Entity as Webhooks;
pub use super::workspace_integrations::Entity as WorkspaceIntegrations;
pub use super::workspace_member_invites::Entity as WorkspaceMemberInvites;
pub use super::workspace_members::Entity as WorkspaceMembers;
pub use super::workspace_themes::Entity as WorkspaceThemes;
pub use super::workspaces::Entity as Workspaces;

View File

@ -0,0 +1,58 @@
//! `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 = "project_deploy_boards")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub anchor: String,
pub comments: bool,
pub reactions: bool,
pub votes: bool,
#[sea_orm(column_type = "JsonBinary")]
pub views: Json,
pub created_by_id: Option<Uuid>,
pub inbox_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,52 @@
//! `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 = "project_favorites")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub user_id: Uuid,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,38 @@
//! `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 = "project_identifiers")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
pub name: String,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Option<Uuid>,
}
#[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,
}
impl Related<super::projects::Entity> for Entity {
fn to() -> RelationDef {
Relation::Projects.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,59 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use super::sea_orm_active_enums::ProjectMemberInviteRoles;
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
#[sea_orm(table_name = "project_member_invites")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub email: String,
pub accepted: bool,
pub token: String,
#[sea_orm(column_type = "Text", nullable)]
pub message: Option<String>,
pub responded_at: Option<DateTimeWithTimeZone>,
pub role: ProjectMemberInviteRoles,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,65 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use super::sea_orm_active_enums::Roles;
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "project_members")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(column_type = "Text", nullable)]
pub comment: Option<String>,
pub role: Roles,
pub created_by_id: Option<Uuid>,
pub member_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub view_props: Json,
#[sea_orm(column_type = "JsonBinary")]
pub default_props: Json,
#[sea_orm(column_type = "Double")]
pub sort_order: f64,
#[sea_orm(column_type = "JsonBinary")]
pub preferences: Json,
pub is_active: bool,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,52 @@
//! `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 = "project_public_members")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub member_id: Uuid,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,452 @@
//! `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 = "projects")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub description_text: Option<Json>,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub description_html: Option<Json>,
pub network: i16,
pub identifier: String,
pub created_by_id: Option<Uuid>,
pub default_assignee_id: Option<Uuid>,
pub project_lead_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
pub emoji: Option<String>,
pub cycle_view: bool,
pub module_view: bool,
pub cover_image: Option<String>,
pub issue_views_view: bool,
pub page_view: bool,
pub estimate_id: Option<Uuid>,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub icon_prop: Option<Json>,
pub inbox_view: bool,
pub archive_in: i32,
pub close_in: i32,
pub default_state_id: Option<Uuid>,
}
#[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")]
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")]
States,
#[sea_orm(has_many = "super::view_favorites::Entity")]
ViewFavorites,
#[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::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()
}
}
impl Related<super::estimates::Entity> for Entity {
fn to() -> RelationDef {
Relation::Estimates.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::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()
}
}
impl Related<super::states::Entity> for Entity {
fn to() -> RelationDef {
Relation::States.def()
}
}
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

@ -0,0 +1,33 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Copy, Serialize, Deserialize)]
#[sea_orm(
rs_type = "String",
db_type = "Enum",
enum_name = "project_member_invite_roles"
)]
pub enum ProjectMemberInviteRoles {
#[sea_orm(string_value = "Admin")]
Admin,
#[sea_orm(string_value = "Guest")]
Guest,
#[sea_orm(string_value = "Member")]
Member,
#[sea_orm(string_value = "Viewer")]
Viewer,
}
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Copy, Serialize, Deserialize)]
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "roles")]
pub enum Roles {
#[sea_orm(string_value = "Admin")]
Admin,
#[sea_orm(string_value = "Guest")]
Guest,
#[sea_orm(string_value = "Member")]
Member,
#[sea_orm(string_value = "Owner")]
Owner,
}

View File

@ -0,0 +1,61 @@
//! `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 = "slack_project_syncs")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub access_token: String,
#[sea_orm(column_type = "Text")]
pub scopes: String,
pub bot_user_id: String,
pub webhook_url: String,
#[sea_orm(column_type = "JsonBinary")]
pub data: Json,
pub team_id: String,
pub team_name: String,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
pub workspace_integration_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,28 @@
//! `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 = "social_login_connections")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub medium: String,
pub last_login_at: Option<DateTimeWithTimeZone>,
pub last_received_at: Option<DateTimeWithTimeZone>,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub token_data: Option<Json>,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub extra_data: Option<Json>,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub user_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,62 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "states")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
pub color: String,
pub slug: String,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "Double")]
pub sequence: f64,
pub group: String,
pub default: bool,
pub external_id: Option<String>,
pub external_source: Option<String>,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,38 @@
//! `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 = "team_members")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub member_id: Uuid,
pub team_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,39 @@
//! `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 = "teams")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "Text")]
pub description: String,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,18 @@
//! `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 = "token_blacklist_blacklistedtoken")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub blacklisted_at: DateTimeWithTimeZone,
pub token_id: i64,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,22 @@
//! `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 = "token_blacklist_outstandingtoken")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
#[sea_orm(column_type = "Text")]
pub token: String,
pub created_at: Option<DateTimeWithTimeZone>,
pub expires_at: DateTimeWithTimeZone,
pub user_id: Option<Uuid>,
pub jti: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,99 @@
//! `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 = "users")]
pub struct Model {
pub password: String,
pub last_login: Option<DateTimeWithTimeZone>,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub username: String,
pub mobile_number: Option<String>,
pub email: Option<String>,
pub first_name: String,
pub last_name: String,
pub avatar: String,
pub date_joined: DateTimeWithTimeZone,
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
pub last_location: String,
pub created_location: String,
pub is_superuser: bool,
pub is_managed: bool,
pub is_password_expired: bool,
pub is_active: bool,
pub is_staff: bool,
pub is_email_verified: bool,
pub is_password_autoset: bool,
pub is_onboarded: bool,
pub token: String,
pub billing_address_country: String,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub billing_address: Option<Json>,
pub has_billing_address: bool,
pub user_timezone: String,
pub last_active: Option<DateTimeWithTimeZone>,
pub last_login_time: Option<DateTimeWithTimeZone>,
pub last_logout_time: Option<DateTimeWithTimeZone>,
pub last_login_ip: String,
pub last_logout_ip: String,
pub last_login_medium: String,
#[sea_orm(column_type = "Text")]
pub last_login_uagent: String,
pub token_updated_at: Option<DateTimeWithTimeZone>,
pub last_workspace_id: Option<Uuid>,
#[sea_orm(column_type = "JsonBinary", nullable)]
pub my_issues_prop: Option<Json>,
pub role: Option<String>,
pub is_bot: bool,
#[sea_orm(column_type = "JsonBinary")]
pub theme: Json,
pub is_tour_completed: bool,
#[sea_orm(column_type = "JsonBinary")]
pub onboarding_step: Json,
pub cover_image: Option<String>,
pub display_name: String,
#[sea_orm(column_type = "Text", nullable)]
pub use_case: Option<String>,
}
#[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,
}
impl Related<super::api_tokens::Entity> for Entity {
fn to() -> RelationDef {
Relation::ApiTokens.def()
}
}
impl Related<super::authtoken_token::Entity> for Entity {
fn to() -> RelationDef {
Relation::AuthtokenToken.def()
}
}
impl Related<super::cycle_favorites::Entity> for Entity {
fn to() -> RelationDef {
Relation::CycleFavorites.def()
}
}
impl Related<super::workspaces::Entity> for Entity {
fn to() -> RelationDef {
Relation::Workspaces.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,18 @@
//! `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 = "users_groups")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub user_id: Uuid,
pub group_id: i32,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,18 @@
//! `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 = "users_user_permissions")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub user_id: Uuid,
pub permission_id: i32,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,53 @@
//! `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 = "view_favorites")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub created_by_id: Option<Uuid>,
pub project_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub user_id: Uuid,
pub view_id: Uuid,
pub workspace_id: Uuid,
}
#[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::workspaces::Entity",
from = "Column::WorkspaceId",
to = "super::workspaces::Column::Id",
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

View File

@ -0,0 +1,50 @@
//! `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 = "webhook_logs")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub event_type: Option<String>,
pub request_method: Option<String>,
#[sea_orm(column_type = "Text", nullable)]
pub request_headers: Option<String>,
#[sea_orm(column_type = "Text", nullable)]
pub request_body: Option<String>,
#[sea_orm(column_type = "Text", nullable)]
pub response_status: Option<String>,
#[sea_orm(column_type = "Text", nullable)]
pub response_headers: Option<String>,
#[sea_orm(column_type = "Text", nullable)]
pub response_body: Option<String>,
pub retry_count: i16,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub webhook_id: Uuid,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,44 @@
//! `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 = "webhooks")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub url: String,
pub is_active: bool,
pub secret_key: String,
pub project: bool,
pub issue: bool,
pub module: bool,
pub cycle: bool,
pub issue_comment: bool,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,43 @@
//! `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 = "workspace_integrations")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(column_type = "JsonBinary")]
pub metadata: Json,
#[sea_orm(column_type = "JsonBinary")]
pub config: Json,
pub actor_id: Uuid,
pub api_token_id: Uuid,
pub created_by_id: Option<Uuid>,
pub integration_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,44 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use super::sea_orm_active_enums::Roles;
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
#[sea_orm(table_name = "workspace_member_invites")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub email: String,
pub accepted: bool,
pub token: String,
#[sea_orm(column_type = "Text", nullable)]
pub message: Option<String>,
pub responded_at: Option<DateTimeWithTimeZone>,
pub role: Roles,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,48 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
use super::sea_orm_active_enums::Roles;
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
#[sea_orm(table_name = "workspace_members")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub role: Roles,
pub created_by_id: Option<Uuid>,
pub member_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
#[sea_orm(column_type = "Text", nullable)]
pub company_role: Option<String>,
#[sea_orm(column_type = "JsonBinary")]
pub view_props: Json,
#[sea_orm(column_type = "JsonBinary")]
pub default_props: Json,
#[sea_orm(column_type = "JsonBinary")]
pub issue_props: Json,
pub is_active: bool,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,40 @@
//! `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 = "workspace_themes")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
#[sea_orm(column_type = "JsonBinary")]
pub colors: Json,
pub actor_id: Uuid,
pub created_by_id: Option<Uuid>,
pub updated_by_id: Option<Uuid>,
pub workspace_id: Uuid,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
#[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

@ -0,0 +1,528 @@
//! `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 = "workspaces")]
pub struct Model {
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub name: String,
pub logo: Option<String>,
pub slug: String,
pub created_by_id: Option<Uuid>,
pub owner_id: Uuid,
pub updated_by_id: Option<Uuid>,
pub organization_size: Option<String>,
}
#[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(
belongs_to = "super::users::Entity",
from = "Column::OwnerId",
to = "super::users::Column::Id",
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,
}
impl Related<super::analytic_views::Entity> for Entity {
fn to() -> RelationDef {
Relation::AnalyticViews.def()
}
}
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()
}
}
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()
}
}
impl ActiveModelBehavior for ActiveModel {}

41
crates/jet-api/Cargo.toml Normal file
View File

@ -0,0 +1,41 @@
[package]
name = "jet-api"
version = "0.1.0"
edition = "2021"
[dependencies]
actix = "0.13.1"
actix-web = { version = "4.4.1", default-features = false, features = ["rustls", "actix-macros", "macros", "experimental-io-uring"] }
async-trait = "0.1.77"
bincode = "1.3.3"
futures = "0.3.30"
futures-util = "0.3.30"
rumqttc = { version = "0.23.0", features = ["use-rustls"] }
rust-s3 = { version = "0.33.0", features = ["tokio-rustls-tls", "futures-util", "futures-io"] }
sea-orm = { version = "0.12.11", features = ["postgres-array", "sqlx-all"] }
serde = "1.0.195"
serde_json = "1.0.111"
tokio = { version = "1.35.1", features = ["full"] }
jet-contract = { workspace = true }
uuid = { version = "1.7.0", features = ["v4", "serde"] }
entities = { workspace = true }
figment = { version = "0.10.14", features = ["env", "toml"] }
serde-aux = "4.4.0"
actix-jwt-session = "1.0.2"
sqlx = { version = "0.7.3", features = ["runtime-tokio"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "serde", "serde_json", "chrono", "json"] }
serde-email = { version = "3.0.1", features = ["all"] }
derive_more = { version = "0.99.17", default-features = false, features = ["display", "deref", "deref_mut", "from"] }
thiserror = "1.0.56"
rand = { version = "0.8.5", features = ["serde"] }
oauth2 = "4.4.2"
oauth2-google = "0.2.0"
oauth2-github = "0.2.0"
oauth2-gitlab = "0.2.0"
oauth2-amazon = "0.2.0"
oauth2-client = "0.2.0"
oauth2-signin = "0.2.0"
oauth2-core = "0.2.0"
reqwest = { version = "0.11.23", default-features = false, features = ["rustls", "tokio-rustls", "tokio-socks", "multipart"] }
http-api-isahc-client = { version = "0.2.2", features = ["with-sleep-via-tokio"] }

22
crates/jet-api/README.md Normal file
View File

@ -0,0 +1,22 @@
## Environment:
* `JET_API_HOST` - application host, example `jet.example.com`
* `JET_API_SCHEMA` - application protocol, example `http`
* `JET_API_ADDR` - default `0.0.0.0:7865`
* `REDIS_ADDR` - default: `0.0.0.0`
* `REDIS_PORT` - default: `6379`
### Application config
* `GOOGLE_CLIENT_ID` -
* `GITHUB_CLIENT_ID` -
* `GITHUB_APP_NAME` -
* `MAGIC_LOGIN` -
* `EMAIL_PASSWORD_LOGIN` -
* `SLACK_CLIENT_ID` -
* `POSTHOG_API_KEY` -
* `POSTHOG_HOST` -
* `HAS_UNSPLASH_CONFIGURED` -
* `HAS_OPENAI_CONFIGURED` -
* `FILE_SIZE_LIMIT` -
* `IS_SELF_MANAGED` -

Some files were not shown because too many files have changed in this diff Show More