mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Initial commit
This commit is contained in:
commit
436a79d99f
50 changed files with 870 additions and 0 deletions
21
database/entities/User.ts
Normal file
21
database/entities/User.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { BaseEntity, Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
|
||||
@Entity({
|
||||
name: "users",
|
||||
})
|
||||
export class User extends BaseEntity {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id!: string;
|
||||
|
||||
@Column("varchar")
|
||||
username!: string;
|
||||
|
||||
@Column("varchar")
|
||||
password!: string;
|
||||
|
||||
@CreateDateColumn()
|
||||
created_at!: Date;
|
||||
|
||||
@UpdateDateColumn()
|
||||
updated_at!: Date;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue