darkbasic-accounts-typeorm
Version:
TypeORM adaptor for accounts
27 lines (19 loc) • 596 B
text/typescript
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne } from 'typeorm';
import { User } from './User';
()
export class UserService {
('uuid')
public id!: string;
(() => User, (user) => user.services, { onDelete: 'CASCADE' })
public user!: User;
()
public name!: string;
({ nullable: true })
public token?: string;
('jsonb', { nullable: true })
public options: { bcrypt: string } | any;
({ nullable: true })
public serviceId!: string;
({ nullable: true })
public userId!: string;
}