Skip to content

Commit

Permalink
conflict server
Browse files Browse the repository at this point in the history
  • Loading branch information
dodoLaprovence committed Dec 12, 2024
1 parent a316f50 commit 1ad6f62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/entities/user.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Column, Entity, PrimaryGeneratedColumn, ManyToOne, JoinColumn, OneToMany, ManyToMany, JoinTable, OneToOne } from 'typeorm';
import { Column, Entity, PrimaryGeneratedColumn, ManyToOne, JoinColumn, OneToMany, ManyToMany, JoinTable, OneToOne, CreateDateColumn } from 'typeorm';

import type { Country } from '../../types/country.type';
import { UserType } from '../../types/user.type';
Expand All @@ -20,6 +20,9 @@ export class User implements UserInterface {
@PrimaryGeneratedColumn()
public id: number;

@CreateDateColumn()
createdAt: Date;

@Column({ type: 'varchar', length: 255, unique: true })
public email: string;

Expand Down

0 comments on commit 1ad6f62

Please sign in to comment.