10 lines
233 B
TypeScript
10 lines
233 B
TypeScript
import { Column, Entity, PrimaryColumn } from "typeorm";
|
|
|
|
@Entity()
|
|
export class authentication {
|
|
@PrimaryColumn({ type: "varchar", length: 36 })
|
|
username: string;
|
|
|
|
@Column({ type: "varchar", length: 255 })
|
|
secret: string;
|
|
}
|