diff options
Diffstat (limited to 'database/migrations/1566554359294_workspace_schema.js')
-rw-r--r-- | database/migrations/1566554359294_workspace_schema.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/database/migrations/1566554359294_workspace_schema.js b/database/migrations/1566554359294_workspace_schema.js deleted file mode 100644 index 0a3c138..0000000 --- a/database/migrations/1566554359294_workspace_schema.js +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | |||
2 | /** @type {import('@adonisjs/lucid/src/Schema')} */ | ||
3 | const Schema = use('Schema'); | ||
4 | |||
5 | class WorkspaceSchema extends Schema { | ||
6 | up() { | ||
7 | this.create('workspaces', (table) => { | ||
8 | table.increments(); | ||
9 | table.string('workspaceId', 80).notNullable().unique(); | ||
10 | table.string('userId', 80).notNullable(); | ||
11 | table.string('name', 80).notNullable(); | ||
12 | table.integer('order'); | ||
13 | table.json('services'); | ||
14 | table.json('data'); | ||
15 | table.timestamps(); | ||
16 | }); | ||
17 | } | ||
18 | |||
19 | down() { | ||
20 | this.drop('workspaces'); | ||
21 | } | ||
22 | } | ||
23 | |||
24 | module.exports = WorkspaceSchema; | ||