mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 20:49:42 +03:00
idk what
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
import { Entity, OneToOne, JoinColumn, PrimaryGeneratedColumn, Column } from 'typeorm';
|
||||
import { User } from './user.entity';
|
||||
|
||||
@Entity()
|
||||
export class ProxyUser {
|
||||
constructor(props?: Partial<ProxyUser>) {
|
||||
Object.assign(this, props);
|
||||
}
|
||||
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
public id!: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
public userName: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
public description: string;
|
||||
|
||||
@Column({ nullable: false })
|
||||
public link!: string;
|
||||
|
||||
@Column({ nullable: false, type: 'timestamptz' })
|
||||
public connectDate!: Date;
|
||||
|
||||
@Column({ nullable: true })
|
||||
user_id: string;
|
||||
|
||||
@OneToOne(() => User)
|
||||
@JoinColumn({ name: 'user_id' })
|
||||
user: User;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn } from 'typeorm';
|
||||
import { ProxyUser } from './ProxyUser.entity';
|
||||
import { ProxyUser } from './proxy_user.entity';
|
||||
|
||||
@Entity()
|
||||
export class Payment {
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
import { Column, Entity, JoinColumn, OneToOne, PrimaryGeneratedColumn } from 'typeorm';
|
||||
import { User } from './user.entity';
|
||||
|
||||
@Entity()
|
||||
export class Admin {
|
||||
constructor(props?: Partial<Admin>) {
|
||||
Object.assign(this, props);
|
||||
}
|
||||
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
public uuid!: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
public userName: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
public description: string;
|
||||
|
||||
@Column({ nullable: false })
|
||||
public link!: string;
|
||||
|
||||
@Column({ nullable: false, type: 'timestamptz' })
|
||||
public connectDate!: Date;
|
||||
|
||||
@Column({ nullable: true })
|
||||
public user_id!: string;
|
||||
|
||||
@OneToOne(() => User, (user) => user.id, { onDelete: 'CASCADE', onUpdate: 'CASCADE', nullable: true })
|
||||
@JoinColumn({ name: 'user_id' })
|
||||
public user: User;
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import { Admin } from './database/admin.entity';
|
||||
import { Post } from './database/post.entity';
|
||||
import { Image } from './database/image.entity';
|
||||
import { Payment } from './database/payment.entity';
|
||||
import { ProxyUser } from './database/ProxyUser.entity';
|
||||
import { ProxyUser } from './database/proxy_user.entity';
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([User, Admin, Post, Image, Payment, ProxyUser])],
|
||||
exports: [TypeOrmModule],
|
||||
|
||||
Reference in New Issue
Block a user