Skip to content

Commit 41c975c

Browse files
committed
add missing entity file, fix run cert script for mac
1 parent 2e92aab commit 41c975c

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ npm install -g mkcert
140140
2. Run the following script
141141

142142
```bash
143-
npm run cert
143+
npm run cert:mac
144144
```
145145

146146
### Linux

server/entities/user.entity.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import {
2+
Entity,
3+
PrimaryColumn,
4+
Column,
5+
BaseEntity,
6+
PrimaryGeneratedColumn,
7+
} from 'typeorm';
8+
9+
@Entity()
10+
export class User extends BaseEntity {
11+
@PrimaryColumn()
12+
id!: number;
13+
14+
@Column()
15+
full_name!: string;
16+
17+
@Column()
18+
sub!: string;
19+
20+
@Column()
21+
email!: string;
22+
23+
@Column()
24+
picture!: string;
25+
26+
@Column()
27+
pg_schema!: string;
28+
29+
@Column()
30+
password!: string;
31+
}
32+
33+
@Entity()
34+
export class UserPost extends BaseEntity {
35+
@PrimaryGeneratedColumn()
36+
id!: number;
37+
38+
@Column()
39+
user_name!: string;
40+
}

0 commit comments

Comments
 (0)