wip
This commit is contained in:
parent
fd8d9f322c
commit
77e4feb507
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('abuse_user_report')
|
||||
export class MiAbuseUserReport {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiApp } from './App.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('access_token')
|
||||
export class MiAccessToken {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import { Entity, Index, Column, PrimaryColumn } from 'typeorm';
|
||||
import { id } from '../id.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('ad')
|
||||
export class MiAd {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Entity, Index, Column, PrimaryColumn, ManyToOne, JoinColumn } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('announcement')
|
||||
export class MiAnnouncement {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiAnnouncement } from './Announcement.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('announcement_read')
|
||||
@Index(['userId', 'announcementId'], { unique: true })
|
||||
export class MiAnnouncementRead {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiUserList } from './UserList.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('antenna')
|
||||
export class MiAntenna {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Entity, PrimaryColumn, Column, Index, ManyToOne } from 'typeorm';
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('app')
|
||||
export class MiApp {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, JoinColumn, Column, ManyToOne, Index } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('attestation_challenge')
|
||||
export class MiAttestationChallenge {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiApp } from './App.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('auth_session')
|
||||
export class MiAuthSession {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('blocking')
|
||||
@Index(['blockerId', 'blockeeId'], { unique: true })
|
||||
export class MiBlocking {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiDriveFile } from './DriveFile.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('channel')
|
||||
export class MiChannel {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiChannel } from './Channel.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('channel_favorite')
|
||||
@Index(['userId', 'channelId'], { unique: true })
|
||||
export class MiChannelFavorite {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiChannel } from './Channel.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('channel_following')
|
||||
@Index(['followerId', 'followeeId'], { unique: true })
|
||||
export class MiChannelFollowing {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('clip')
|
||||
export class MiClip {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiClip } from './Clip.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('clip_favorite')
|
||||
@Index(['userId', 'clipId'], { unique: true })
|
||||
export class MiClipFavorite {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiNote } from './Note.js';
|
||||
import { MiClip } from './Clip.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('clip_note')
|
||||
@Index(['noteId', 'clipId'], { unique: true })
|
||||
export class MiClipNote {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiDriveFolder } from './DriveFolder.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('drive_file')
|
||||
@Index(['userId', 'folderId', 'id'])
|
||||
export class MiDriveFile {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { JoinColumn, ManyToOne, Entity, PrimaryColumn, Index, Column } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('drive_folder')
|
||||
export class MiDriveFolder {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import { PrimaryColumn, Entity, Index, Column } from 'typeorm';
|
||||
import { id } from '../id.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('emoji')
|
||||
@Index(['name', 'host'], { unique: true })
|
||||
export class MiEmoji {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Entity, Index, JoinColumn, Column, PrimaryColumn, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('flash')
|
||||
export class MiFlash {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiFlash } from './Flash.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('flash_like')
|
||||
@Index(['userId', 'flashId'], { unique: true })
|
||||
export class MiFlashLike {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('follow_request')
|
||||
@Index(['followerId', 'followeeId'], { unique: true })
|
||||
export class MiFollowRequest {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('following')
|
||||
@Index(['followerId', 'followeeId'], { unique: true })
|
||||
export class MiFollowing {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiGalleryPost } from './GalleryPost.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('gallery_like')
|
||||
@Index(['userId', 'postId'], { unique: true })
|
||||
export class MiGalleryLike {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import type { MiDriveFile } from './DriveFile.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('gallery_post')
|
||||
export class MiGalleryPost {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Entity, PrimaryColumn, Index, Column } from 'typeorm';
|
|||
import { id } from '../id.js';
|
||||
import type { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('hashtag')
|
||||
export class MiHashtag {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import { Entity, PrimaryColumn, Index, Column } from 'typeorm';
|
||||
import { id } from '../id.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('instance')
|
||||
export class MiInstance {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Entity, Column, PrimaryColumn, ManyToOne, JoinColumn } from 'typeorm';
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('meta')
|
||||
export class MiMeta {
|
||||
@PrimaryColumn({
|
||||
type: 'varchar',
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('moderation_log')
|
||||
export class MiModerationLog {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -9,7 +9,7 @@ import { mutedNoteReasons } from '../../types.js';
|
|||
import { MiNote } from './Note.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('muted_note')
|
||||
@Index(['noteId', 'userId'], { unique: true })
|
||||
export class MiMutedNote {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('muting')
|
||||
@Index(['muterId', 'muteeId'], { unique: true })
|
||||
export class MiMuting {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -10,7 +10,7 @@ import { MiUser } from './User.js';
|
|||
import { MiChannel } from './Channel.js';
|
||||
import type { MiDriveFile } from './DriveFile.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('note')
|
||||
@Index('IDX_NOTE_TAGS', { synchronize: false })
|
||||
@Index('IDX_NOTE_MENTIONS', { synchronize: false })
|
||||
@Index('IDX_NOTE_VISIBLE_USER_IDS', { synchronize: false })
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiNote } from './Note.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('note_favorite')
|
||||
@Index(['userId', 'noteId'], { unique: true })
|
||||
export class MiNoteFavorite {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiNote } from './Note.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('note_reaction')
|
||||
@Index(['userId', 'noteId'], { unique: true })
|
||||
export class MiNoteReaction {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('note_thread_muting')
|
||||
@Index(['userId', 'threadId'], { unique: true })
|
||||
export class MiNoteThreadMuting {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -9,7 +9,7 @@ import { MiUser } from './User.js';
|
|||
import { MiNote } from './Note.js';
|
||||
import type { MiChannel } from './Channel.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('note_unread')
|
||||
@Index(['userId', 'noteId'], { unique: true })
|
||||
export class MiNoteUnread {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiDriveFile } from './DriveFile.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('page')
|
||||
@Index(['userId', 'name'], { unique: true })
|
||||
export class MiPage {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiPage } from './Page.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('page_like')
|
||||
@Index(['userId', 'pageId'], { unique: true })
|
||||
export class MiPageLike {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, Column, ManyToOne, JoinColumn } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('password_reset_request')
|
||||
export class MiPasswordResetRequest {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -9,7 +9,7 @@ import { noteVisibilities } from '../../types.js';
|
|||
import { MiNote } from './Note.js';
|
||||
import type { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('poll')
|
||||
export class MiPoll {
|
||||
@PrimaryColumn(id())
|
||||
public noteId: MiNote['id'];
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiNote } from './Note.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('poll_vote')
|
||||
@Index(['userId', 'noteId', 'choice'], { unique: true })
|
||||
export class MiPollVote {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiNote } from './Note.js';
|
||||
import type { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('promo_note')
|
||||
export class MiPromoNote {
|
||||
@PrimaryColumn(id())
|
||||
public noteId: MiNote['id'];
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiNote } from './Note.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('promo_read')
|
||||
@Index(['userId', 'noteId'], { unique: true })
|
||||
export class MiPromoRead {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, Column, ManyToOne, JoinColumn, OneToOne }
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('registration_ticket')
|
||||
export class MiRegistrationTicket {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
|
||||
// TODO: 同じdomain、同じscope、同じkeyのレコードは二つ以上存在しないように制約付けたい
|
||||
@Entity()
|
||||
@Entity('registry_item')
|
||||
export class MiRegistryItem {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import { PrimaryColumn, Entity, Index, Column } from 'typeorm';
|
||||
import { id } from '../id.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('relay')
|
||||
export class MiRelay {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('renote_muting')
|
||||
@Index(['muterId', 'muteeId'], { unique: true })
|
||||
export class MiRenoteMuting {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Entity, PrimaryColumn, Index, Column } from 'typeorm';
|
|||
import { id } from '../id.js';
|
||||
import type { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('retention_aggregation')
|
||||
export class MiRetentionAggregation {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -84,7 +84,7 @@ export type RoleCondFormulaValue =
|
|||
CondFormulaValueNotesLessThanOrEq |
|
||||
CondFormulaValueNotesMoreThanOrEq;
|
||||
|
||||
@Entity()
|
||||
@Entity('role')
|
||||
export class MiRole {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiRole } from './Role.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('role_assignment')
|
||||
@Index(['userId', 'roleId'], { unique: true })
|
||||
export class MiRoleAssignment {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('signin')
|
||||
export class MiSignin {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('sw_subscription')
|
||||
export class MiSwSubscription {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
import { PrimaryColumn, Entity, Column } from 'typeorm';
|
||||
|
||||
@Entity()
|
||||
@Entity('used_username')
|
||||
export class MiUsedUsername {
|
||||
@PrimaryColumn('varchar', {
|
||||
length: 128,
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Entity, Column, Index, OneToOne, JoinColumn, PrimaryColumn } from 'type
|
|||
import { id } from '../id.js';
|
||||
import { MiDriveFile } from './DriveFile.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user')
|
||||
@Index(['usernameLower', 'host'], { unique: true })
|
||||
export class MiUser {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Entity, Index, Column, PrimaryGeneratedColumn } from 'typeorm';
|
|||
import { id } from '../id.js';
|
||||
import type { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_ip')
|
||||
@Index(['userId', 'ip'], { unique: true })
|
||||
export class MiUserIp {
|
||||
@PrimaryGeneratedColumn()
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, JoinColumn, Column, OneToOne } from 'typeorm';
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_keypair')
|
||||
export class MiUserKeypair {
|
||||
@PrimaryColumn(id())
|
||||
public userId: MiUser['id'];
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_list')
|
||||
export class MiUserList {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiUserList } from './UserList.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_list_favorite')
|
||||
@Index(['userId', 'userListId'], { unique: true })
|
||||
export class MiUserListFavorite {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiUser } from './User.js';
|
||||
import { MiUserList } from './UserList.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_list_joining')
|
||||
@Index(['userId', 'userListId'], { unique: true })
|
||||
export class MiUserListJoining {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Column, Entity, Index, JoinColumn, ManyToOne, PrimaryColumn } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_memo')
|
||||
@Index(['userId', 'targetUserId'], { unique: true })
|
||||
export class MiUserMemo {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -8,7 +8,7 @@ import { id } from '../id.js';
|
|||
import { MiNote } from './Note.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_note_pining')
|
||||
@Index(['userId', 'noteId'], { unique: true })
|
||||
export class MiUserNotePining {
|
||||
@PrimaryColumn(id())
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import { PrimaryColumn, Entity, Index, Column } from 'typeorm';
|
||||
import { id } from '../id.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_pending')
|
||||
export class MiUserPending {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
|
@ -11,7 +11,7 @@ import { MiPage } from './Page.js';
|
|||
|
||||
// TODO: このテーブルで管理している情報すべてレジストリで管理するようにしても良いかも
|
||||
// ただ、「emailVerified が true なユーザーを find する」のようなクエリは書けなくなるからウーン
|
||||
@Entity()
|
||||
@Entity('user_profile')
|
||||
export class MiUserProfile {
|
||||
@PrimaryColumn(id())
|
||||
public userId: MiUser['id'];
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, OneToOne } from 'type
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_publickey')
|
||||
export class MiUserPublickey {
|
||||
@PrimaryColumn(id())
|
||||
public userId: MiUser['id'];
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PrimaryColumn, Entity, JoinColumn, Column, ManyToOne, Index } from 'typ
|
|||
import { id } from '../id.js';
|
||||
import { MiUser } from './User.js';
|
||||
|
||||
@Entity()
|
||||
@Entity('user_security_key')
|
||||
export class MiUserSecurityKey {
|
||||
@PrimaryColumn('varchar', {
|
||||
comment: 'Variable-length id given to navigator.credentials.get()',
|
||||
|
|
|
@ -9,7 +9,7 @@ import { MiUser } from './User.js';
|
|||
|
||||
export const webhookEventTypes = ['mention', 'unfollow', 'follow', 'followed', 'note', 'reply', 'renote', 'reaction'] as const;
|
||||
|
||||
@Entity()
|
||||
@Entity('webhook')
|
||||
export class MiWebhook {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
Loading…
Reference in New Issue