From 39d70c1bd594720fb5b001eb77b848a1ddee5324 Mon Sep 17 00:00:00 2001 From: elit04 <elit04@fu-berlin.de> Date: Sun, 23 Jan 2022 06:39:02 -0500 Subject: [PATCH] sports not needed, the raltion between Boat ans Sport is saved in BoatHasSport table --- server/src/db/models/Boat.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/src/db/models/Boat.ts b/server/src/db/models/Boat.ts index c0dc8fd..53e70f7 100644 --- a/server/src/db/models/Boat.ts +++ b/server/src/db/models/Boat.ts @@ -8,7 +8,6 @@ interface BoatAttributes { tags: Array<string>; minP: number; maxP: number; - sports: Array<string>; } export interface BoatAttributesInput extends Optional<BoatAttributes, "id"> {} @@ -24,7 +23,6 @@ class Boat declare name: string; declare status: boolean; declare tags: Array<string>; - declare sports: Array<string>; declare readonly createdAt: Date; declare readonly updatedAt: Date; @@ -68,10 +66,6 @@ export const initBoat = async (sequelizeConnection: Sequelize) => { type: DataTypes.INTEGER, allowNull: false, }, - sports: { - type: DataTypes.ARRAY(DataTypes.STRING), - allowNull: true, - }, }, { tableName: "boat", -- GitLab