add creation date column to users
This commit is contained in:
parent
bf09096740
commit
cd489ed06f
|
@ -1,4 +1,11 @@
|
|||
import {BeforeInsert, Column, Entity, OneToMany, PrimaryColumn} from 'typeorm';
|
||||
import {
|
||||
BeforeInsert,
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
Entity,
|
||||
OneToMany,
|
||||
PrimaryColumn,
|
||||
} from 'typeorm';
|
||||
|
||||
import {ulidMonotonic} from '$lib/server/ulid';
|
||||
import {AuthMethod} from './AuthMethod';
|
||||
|
@ -8,6 +15,9 @@ export class User {
|
|||
@PrimaryColumn({type: 'varchar', length: 26})
|
||||
id = ulidMonotonic();
|
||||
|
||||
@CreateDateColumn()
|
||||
createdAt!: Date;
|
||||
|
||||
@Column({type: 'varchar', length: 500, nullable: false})
|
||||
name!: string;
|
||||
|
||||
|
|
Loading…
Reference in a new issue