jet/crates/entities/src/workspaces.rs

529 lines
14 KiB
Rust
Raw Normal View History

2024-01-23 12:29:19 +01:00
//! `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 {}