//! `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, pub slug: String, pub created_by_id: Option, pub owner_id: Uuid, pub updated_by_id: Option, pub organization_size: Option, } #[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 for Entity { fn to() -> RelationDef { Relation::AnalyticViews.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::CommentReactions.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::CycleFavorites.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::CycleIssues.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Cycles.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::EstimatePoints.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Estimates.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Exporters.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::GithubCommentSyncs.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::GithubIssueSyncs.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::GithubRepositories.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::GithubRepositorySyncs.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::GlobalViews.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Importers.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::InboxIssues.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Inboxes.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueActivities.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueAssignees.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueAttachments.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueBlockers.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueComments.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueLabels.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueLinks.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueMentions.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueProperties.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueReactions.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueRelations.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueSequences.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueSubscribers.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueViews.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::IssueVotes.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Issues.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Labels.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ModuleFavorites.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ModuleIssues.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ModuleLinks.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ModuleMembers.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Modules.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Notifications.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::PageBlocks.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::PageFavorites.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::PageLabels.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::PageLogs.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Pages.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ProjectDeployBoards.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ProjectFavorites.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ProjectMemberInvites.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ProjectMembers.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ProjectPublicMembers.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Projects.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::SlackProjectSyncs.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::States.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::TeamMembers.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Teams.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Users.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::ViewFavorites.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::WebhookLogs.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::Webhooks.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::WorkspaceIntegrations.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::WorkspaceMemberInvites.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::WorkspaceMembers.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::WorkspaceThemes.def() } } impl ActiveModelBehavior for ActiveModel {}