You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
376 B
16 lines
376 B
import {Field, FieldType, Model} from '@extollo/orm'
|
|
|
|
export class User extends Model<User> {
|
|
protected static table = 'user'
|
|
protected static key = 'user_id'
|
|
|
|
@Field(FieldType.serial, 'user_id')
|
|
public userId!: number
|
|
|
|
@Field(FieldType.varchar)
|
|
public username!: string
|
|
|
|
@Field(FieldType.varchar, 'phone_number')
|
|
public phoneNumber!: string
|
|
}
|