chore: update auto-generated files
This commit is contained in:
parent
14834c187b
commit
abbbfa9a0a
6 changed files with 3 additions and 79 deletions
7
packages/backend-rs/index.d.ts
vendored
7
packages/backend-rs/index.d.ts
vendored
|
@ -749,6 +749,7 @@ export interface Note {
|
||||||
threadId: string | null
|
threadId: string | null
|
||||||
updatedAt: DateTimeWithTimeZone | null
|
updatedAt: DateTimeWithTimeZone | null
|
||||||
lang: string | null
|
lang: string | null
|
||||||
|
scheduledAt: DateTimeWithTimeZone | null
|
||||||
}
|
}
|
||||||
export interface NoteEdit {
|
export interface NoteEdit {
|
||||||
id: string
|
id: string
|
||||||
|
@ -908,12 +909,6 @@ export interface ReplyMuting {
|
||||||
muteeId: string
|
muteeId: string
|
||||||
muterId: string
|
muterId: string
|
||||||
}
|
}
|
||||||
export interface ScheduledNote {
|
|
||||||
id: string
|
|
||||||
noteId: string
|
|
||||||
userId: string
|
|
||||||
scheduledAt: DateTimeWithTimeZone
|
|
||||||
}
|
|
||||||
export enum AntennaSrc {
|
export enum AntennaSrc {
|
||||||
All = 'all',
|
All = 'all',
|
||||||
Group = 'group',
|
Group = 'group',
|
||||||
|
|
|
@ -53,7 +53,6 @@ pub mod registry_item;
|
||||||
pub mod relay;
|
pub mod relay;
|
||||||
pub mod renote_muting;
|
pub mod renote_muting;
|
||||||
pub mod reply_muting;
|
pub mod reply_muting;
|
||||||
pub mod scheduled_note;
|
|
||||||
pub mod sea_orm_active_enums;
|
pub mod sea_orm_active_enums;
|
||||||
pub mod signin;
|
pub mod signin;
|
||||||
pub mod sw_subscription;
|
pub mod sw_subscription;
|
||||||
|
|
|
@ -68,6 +68,8 @@ pub struct Model {
|
||||||
#[sea_orm(column_name = "updatedAt")]
|
#[sea_orm(column_name = "updatedAt")]
|
||||||
pub updated_at: Option<DateTimeWithTimeZone>,
|
pub updated_at: Option<DateTimeWithTimeZone>,
|
||||||
pub lang: Option<String>,
|
pub lang: Option<String>,
|
||||||
|
#[sea_orm(column_name = "scheduledAt")]
|
||||||
|
pub scheduled_at: Option<DateTimeWithTimeZone>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
@ -124,8 +126,6 @@ pub enum Relation {
|
||||||
PromoNote,
|
PromoNote,
|
||||||
#[sea_orm(has_many = "super::promo_read::Entity")]
|
#[sea_orm(has_many = "super::promo_read::Entity")]
|
||||||
PromoRead,
|
PromoRead,
|
||||||
#[sea_orm(has_many = "super::scheduled_note::Entity")]
|
|
||||||
ScheduledNote,
|
|
||||||
#[sea_orm(
|
#[sea_orm(
|
||||||
belongs_to = "super::user::Entity",
|
belongs_to = "super::user::Entity",
|
||||||
from = "Column::UserId",
|
from = "Column::UserId",
|
||||||
|
@ -228,12 +228,6 @@ impl Related<super::promo_read::Entity> for Entity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Related<super::scheduled_note::Entity> for Entity {
|
|
||||||
fn to() -> RelationDef {
|
|
||||||
Relation::ScheduledNote.def()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Related<super::user::Entity> for Entity {
|
impl Related<super::user::Entity> for Entity {
|
||||||
fn to() -> RelationDef {
|
fn to() -> RelationDef {
|
||||||
Relation::User.def()
|
Relation::User.def()
|
||||||
|
|
|
@ -51,7 +51,6 @@ pub use super::registry_item::Entity as RegistryItem;
|
||||||
pub use super::relay::Entity as Relay;
|
pub use super::relay::Entity as Relay;
|
||||||
pub use super::renote_muting::Entity as RenoteMuting;
|
pub use super::renote_muting::Entity as RenoteMuting;
|
||||||
pub use super::reply_muting::Entity as ReplyMuting;
|
pub use super::reply_muting::Entity as ReplyMuting;
|
||||||
pub use super::scheduled_note::Entity as ScheduledNote;
|
|
||||||
pub use super::signin::Entity as Signin;
|
pub use super::signin::Entity as Signin;
|
||||||
pub use super::sw_subscription::Entity as SwSubscription;
|
pub use super::sw_subscription::Entity as SwSubscription;
|
||||||
pub use super::used_username::Entity as UsedUsername;
|
pub use super::used_username::Entity as UsedUsername;
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.15
|
|
||||||
|
|
||||||
use sea_orm::entity::prelude::*;
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, serde::Serialize, serde::Deserialize)]
|
|
||||||
#[serde(rename_all = "camelCase")]
|
|
||||||
#[sea_orm(table_name = "scheduled_note")]
|
|
||||||
#[cfg_attr(
|
|
||||||
feature = "napi",
|
|
||||||
napi_derive::napi(object, js_name = "ScheduledNote", use_nullable = true)
|
|
||||||
)]
|
|
||||||
pub struct Model {
|
|
||||||
#[sea_orm(primary_key, auto_increment = false)]
|
|
||||||
pub id: String,
|
|
||||||
#[sea_orm(column_name = "noteId")]
|
|
||||||
pub note_id: String,
|
|
||||||
#[sea_orm(column_name = "userId")]
|
|
||||||
pub user_id: String,
|
|
||||||
#[sea_orm(column_name = "scheduledAt")]
|
|
||||||
pub scheduled_at: DateTimeWithTimeZone,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
||||||
pub enum Relation {
|
|
||||||
#[sea_orm(
|
|
||||||
belongs_to = "super::note::Entity",
|
|
||||||
from = "Column::NoteId",
|
|
||||||
to = "super::note::Column::Id",
|
|
||||||
on_update = "NoAction",
|
|
||||||
on_delete = "Cascade"
|
|
||||||
)]
|
|
||||||
Note,
|
|
||||||
#[sea_orm(
|
|
||||||
belongs_to = "super::user::Entity",
|
|
||||||
from = "Column::UserId",
|
|
||||||
to = "super::user::Column::Id",
|
|
||||||
on_update = "NoAction",
|
|
||||||
on_delete = "Cascade"
|
|
||||||
)]
|
|
||||||
User,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Related<super::note::Entity> for Entity {
|
|
||||||
fn to() -> RelationDef {
|
|
||||||
Relation::Note.def()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Related<super::user::Entity> for Entity {
|
|
||||||
fn to() -> RelationDef {
|
|
||||||
Relation::User.def()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ActiveModelBehavior for ActiveModel {}
|
|
|
@ -153,8 +153,6 @@ pub enum Relation {
|
||||||
PromoRead,
|
PromoRead,
|
||||||
#[sea_orm(has_many = "super::registry_item::Entity")]
|
#[sea_orm(has_many = "super::registry_item::Entity")]
|
||||||
RegistryItem,
|
RegistryItem,
|
||||||
#[sea_orm(has_many = "super::scheduled_note::Entity")]
|
|
||||||
ScheduledNote,
|
|
||||||
#[sea_orm(has_many = "super::signin::Entity")]
|
#[sea_orm(has_many = "super::signin::Entity")]
|
||||||
Signin,
|
Signin,
|
||||||
#[sea_orm(has_many = "super::sw_subscription::Entity")]
|
#[sea_orm(has_many = "super::sw_subscription::Entity")]
|
||||||
|
@ -347,12 +345,6 @@ impl Related<super::registry_item::Entity> for Entity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Related<super::scheduled_note::Entity> for Entity {
|
|
||||||
fn to() -> RelationDef {
|
|
||||||
Relation::ScheduledNote.def()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Related<super::signin::Entity> for Entity {
|
impl Related<super::signin::Entity> for Entity {
|
||||||
fn to() -> RelationDef {
|
fn to() -> RelationDef {
|
||||||
Relation::Signin.def()
|
Relation::Signin.def()
|
||||||
|
|
Loading…
Reference in a new issue