This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -12,26 +12,26 @@ export class UserProfile {
public userId: User['id'];
@OneToOne(type => User, {
onDelete: 'CASCADE'
onDelete: 'CASCADE',
})
@JoinColumn()
public user: User | null;
@Column('varchar', {
length: 128, nullable: true,
comment: 'The location of the User.'
comment: 'The location of the User.',
})
public location: string | null;
@Column('char', {
length: 10, nullable: true,
comment: 'The birthday (YYYY-MM-DD) of the User.'
comment: 'The birthday (YYYY-MM-DD) of the User.',
})
public birthday: string | null;
@Column('varchar', {
length: 2048, nullable: true,
comment: 'The description (bio) of the User.'
comment: 'The description (bio) of the User.',
})
public description: string | null;
@@ -50,13 +50,13 @@ export class UserProfile {
@Column('varchar', {
length: 512, nullable: true,
comment: 'Remote URL of the user.'
comment: 'Remote URL of the user.',
})
public url: string | null;
@Column('varchar', {
length: 128, nullable: true,
comment: 'The email address of the User.'
comment: 'The email address of the User.',
})
public email: string | null;
@@ -71,7 +71,7 @@ export class UserProfile {
public emailVerified: boolean;
@Column('jsonb', {
default: ['follow', 'receiveFollowRequest', 'groupInvited']
default: ['follow', 'receiveFollowRequest', 'groupInvited'],
})
public emailNotificationTypes: string[];
@@ -113,20 +113,20 @@ export class UserProfile {
@Column('varchar', {
length: 128, nullable: true,
comment: 'The password hash of the User. It will be null if the origin of the user is local.'
comment: 'The password hash of the User. It will be null if the origin of the user is local.',
})
public password: string | null;
// TODO: そのうち消す
@Column('jsonb', {
default: {},
comment: 'The client-specific data of the User.'
comment: 'The client-specific data of the User.',
})
public clientData: Record<string, any>;
@Column('jsonb', {
default: {},
comment: 'The room data of the User.'
comment: 'The room data of the User.',
})
public room: Record<string, any>;
@@ -137,7 +137,7 @@ export class UserProfile {
@Column('boolean', {
default: false,
comment: 'Whether reject index by crawler.'
comment: 'Whether reject index by crawler.',
})
public noCrawle: boolean;
@@ -163,18 +163,18 @@ export class UserProfile {
@Column({
...id(),
nullable: true
nullable: true,
})
public pinnedPageId: Page['id'] | null;
@OneToOne(type => Page, {
onDelete: 'SET NULL'
onDelete: 'SET NULL',
})
@JoinColumn()
public pinnedPage: Page | null;
@Column('jsonb', {
default: {}
default: {},
})
public integrations: Record<string, any>;
@@ -185,12 +185,12 @@ export class UserProfile {
public enableWordMute: boolean;
@Column('jsonb', {
default: []
default: [],
})
public mutedWords: string[][];
@Column('jsonb', {
default: []
default: [],
})
public mutedInstances: string[];
@@ -205,7 +205,7 @@ export class UserProfile {
@Index()
@Column('varchar', {
length: 128, nullable: true,
comment: '[Denormalized]'
comment: '[Denormalized]',
})
public userHost: string | null;
//#endregion