Skip to content
Snippets Groups Projects
Commit 39d70c1b authored by elit04's avatar elit04
Browse files

sports not needed, the raltion between Boat ans Sport is saved in BoatHasSport table

parent 6379c946
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment