fix: prettier)

This commit is contained in:
2024-07-03 23:49:05 +03:00
parent a865789efa
commit 5e570a4f60
47 changed files with 5152 additions and 2835 deletions

View File

@@ -1,35 +1,39 @@
import { Column, Entity, JoinColumn, OneToMany, OneToOne, PrimaryGeneratedColumn } from 'typeorm';
import { Payment } from './payment.entity';
import { User } from './user.entity';
import { Column, Entity, JoinColumn, OneToMany, OneToOne, PrimaryGeneratedColumn } from "typeorm";
import { Payment } from "./payment.entity";
import { User } from "./user.entity";
@Entity()
export class ProxyUser {
constructor(props?: Partial<ProxyUser>) {
Object.assign(this, props);
}
constructor(props?: Partial<ProxyUser>) {
Object.assign(this, props);
}
@PrimaryGeneratedColumn('uuid')
public uuid!: string;
@PrimaryGeneratedColumn("uuid")
public uuid!: string;
@Column({ nullable: false, unique: true })
public userName!: string;
@Column({ nullable: false, unique: true })
public userName!: string;
@Column({ nullable: true })
public description?: string;
@Column({ nullable: true })
public description?: string;
@Column({ nullable: false })
public link!: string;
@Column({ nullable: false })
public link!: string;
@Column({ nullable: false, type: 'timestamptz' })
public connectDate!: Date;
@Column({ nullable: false, type: "timestamptz" })
public connectDate!: Date;
@Column({ nullable: true })
public user_id!: string;
@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;
@OneToOne(() => User, (user) => user.id, {
onDelete: "CASCADE",
onUpdate: "CASCADE",
nullable: true,
})
@JoinColumn({ name: "user_id" })
public user?: User;
@OneToMany(() => Payment, (payment) => payment.user)
public payments: Payment[];
@OneToMany(() => Payment, (payment) => payment.user)
public payments: Payment[];
}