mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-23 09:42:10 +00:00
UserEntity: Fix column types for create/update dates
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
558addf83e
commit
53fbe82b6a
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