From c171307b13108221f2867736da129949529ce5bd Mon Sep 17 00:00:00 2001 From: Neo Ryo Date: Wed, 10 Apr 2024 09:02:12 +0200 Subject: [PATCH] WIP --- server/entities/country.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 server/entities/country.ts diff --git a/server/entities/country.ts b/server/entities/country.ts new file mode 100644 index 000000000..1853b8e72 --- /dev/null +++ b/server/entities/country.ts @@ -0,0 +1,13 @@ +import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; + +@Entity() +export class Country { + @PrimaryGeneratedColumn() + public id: number; + + @Column({ type: 'text', nullable: false }) + public code: string; + + @Column({ type: 'text', nullable: false }) + public name: string; +}