mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-28 15:02:50 +00:00
UserEntity: Fix column types for create/update dates
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
5f13c34a07
commit
9aa2a64a53
1 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,9 @@
|
|||
import { Entity, PrimaryGeneratedColumn } from 'typeorm';
|
||||
import {
|
||||
CreateDateColumn,
|
||||
Entity,
|
||||
PrimaryGeneratedColumn,
|
||||
UpdateDateColumn,
|
||||
} from 'typeorm';
|
||||
import { Column, OneToMany } from 'typeorm/index';
|
||||
import { Note } from '../notes/note.entity';
|
||||
import { AuthToken } from './auth-token.entity';
|
||||
|
@ -15,10 +20,10 @@ export class User {
|
|||
@Column()
|
||||
displayName: string;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
createdAt: Date;
|
||||
|
||||
@Column()
|
||||
@UpdateDateColumn()
|
||||
updatedAt: Date;
|
||||
|
||||
@Column({
|
||||
|
|
Loading…
Reference in a new issue