chore: init commit
This commit is contained in:
21
src/entity/User.js
Normal file
21
src/entity/User.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { EntitySchema } from "typeorm";
|
||||
|
||||
export const User = new EntitySchema({
|
||||
name: "User",
|
||||
columns: {
|
||||
id: {
|
||||
type: Number,
|
||||
primary: true,
|
||||
generated: true,
|
||||
},
|
||||
firstName: {
|
||||
type: String,
|
||||
},
|
||||
lastName: {
|
||||
type: String,
|
||||
},
|
||||
age: {
|
||||
type: Number,
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user