Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import { TableName } from 'src/modules/common/database/shared/database.const'; import { IAuthUser } from 'src/modules/domain/auth/user/shared/user.interface'; import { EntitySchema } from 'typeorm'; import { BaseSchema } from './base.schema'; export const AuthUserSchema = new EntitySchema<IAuthUser>({ name: TableName.AuthUser, tableName: TableName.AuthUser, columns: { userId: { name: 'user_id', type: 'uuid', primary: true, generated: 'uuid', comment: 'Primary key', }, password: { type: String, length: 100, nullable: true, comment: 'Authentication Password', }, ...BaseSchema, }, }); |