mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 05:43:43 +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 { Column, OneToMany } from 'typeorm/index';
|
||||||
import { Note } from '../notes/note.entity';
|
import { Note } from '../notes/note.entity';
|
||||||
import { AuthToken } from './auth-token.entity';
|
import { AuthToken } from './auth-token.entity';
|
||||||
|
@ -15,10 +20,10 @@ export class User {
|
||||||
@Column()
|
@Column()
|
||||||
displayName: string;
|
displayName: string;
|
||||||
|
|
||||||
@Column()
|
@CreateDateColumn()
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
|
|
||||||
@Column()
|
@UpdateDateColumn()
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
|
Loading…
Reference in a new issue