diff options
Diffstat (limited to 'server/models/pod')
-rw-r--r-- | server/models/pod/pod-interface.ts | 2 | ||||
-rw-r--r-- | server/models/pod/pod.ts | 12 |
2 files changed, 0 insertions, 14 deletions
diff --git a/server/models/pod/pod-interface.ts b/server/models/pod/pod-interface.ts index 7e095d424..6c5aab3fa 100644 --- a/server/models/pod/pod-interface.ts +++ b/server/models/pod/pod-interface.ts | |||
@@ -48,9 +48,7 @@ export interface PodClass { | |||
48 | export interface PodAttributes { | 48 | export interface PodAttributes { |
49 | id?: number | 49 | id?: number |
50 | host?: string | 50 | host?: string |
51 | publicKey?: string | ||
52 | score?: number | Sequelize.literal // Sequelize literal for 'score +' + value | 51 | score?: number | Sequelize.literal // Sequelize literal for 'score +' + value |
53 | email?: string | ||
54 | } | 52 | } |
55 | 53 | ||
56 | export interface PodInstance extends PodClass, PodAttributes, Sequelize.Instance<PodAttributes> { | 54 | export interface PodInstance extends PodClass, PodAttributes, Sequelize.Instance<PodAttributes> { |
diff --git a/server/models/pod/pod.ts b/server/models/pod/pod.ts index 6b33336b8..7c8b49bf8 100644 --- a/server/models/pod/pod.ts +++ b/server/models/pod/pod.ts | |||
@@ -39,10 +39,6 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da | |||
39 | } | 39 | } |
40 | } | 40 | } |
41 | }, | 41 | }, |
42 | publicKey: { | ||
43 | type: DataTypes.STRING(5000), | ||
44 | allowNull: false | ||
45 | }, | ||
46 | score: { | 42 | score: { |
47 | type: DataTypes.INTEGER, | 43 | type: DataTypes.INTEGER, |
48 | defaultValue: FRIEND_SCORE.BASE, | 44 | defaultValue: FRIEND_SCORE.BASE, |
@@ -51,13 +47,6 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da | |||
51 | isInt: true, | 47 | isInt: true, |
52 | max: FRIEND_SCORE.MAX | 48 | max: FRIEND_SCORE.MAX |
53 | } | 49 | } |
54 | }, | ||
55 | email: { | ||
56 | type: DataTypes.STRING(400), | ||
57 | allowNull: false, | ||
58 | validate: { | ||
59 | isEmail: true | ||
60 | } | ||
61 | } | 50 | } |
62 | }, | 51 | }, |
63 | { | 52 | { |
@@ -100,7 +89,6 @@ toFormattedJSON = function (this: PodInstance) { | |||
100 | const json = { | 89 | const json = { |
101 | id: this.id, | 90 | id: this.id, |
102 | host: this.host, | 91 | host: this.host, |
103 | email: this.email, | ||
104 | score: this.score as number, | 92 | score: this.score as number, |
105 | createdAt: this.createdAt | 93 | createdAt: this.createdAt |
106 | } | 94 | } |