mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Working
This commit is contained in:
@@ -7,7 +7,7 @@ export default class Subscribers extends BaseSchema {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id').primary()
|
||||
table.string('email').notNullable()
|
||||
table.timestamps()
|
||||
table.timestamps(true, true)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export default class Pictures extends BaseSchema {
|
||||
table.increments('id').primary()
|
||||
table.string('label').notNullable()
|
||||
table.string('file_name').notNullable()
|
||||
table.timestamps()
|
||||
table.timestamps(true, true)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export default class Posts extends BaseSchema {
|
||||
table.increments('id').primary()
|
||||
table.string('slug').notNullable()
|
||||
table.integer('likes').notNullable()
|
||||
table.timestamps()
|
||||
table.timestamps(true, true)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ export default class Locations extends BaseSchema {
|
||||
table.string('place')
|
||||
table.string('left')
|
||||
table.date('since')
|
||||
table.timestamps()
|
||||
table.timestamps(true, true)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export default class Projects extends BaseSchema {
|
||||
table.string('description')
|
||||
table.string('url')
|
||||
table.integer('progress')
|
||||
table.timestamps()
|
||||
table.timestamps(true, true)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export default class Forms extends BaseSchema {
|
||||
table.string('email')
|
||||
table.string('subject')
|
||||
table.string('content')
|
||||
table.timestamps()
|
||||
table.timestamps(true, true)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ export default class Users extends BaseSchema {
|
||||
table.boolean('is_confirmed').defaultTo(false).notNullable()
|
||||
table.string('remember_me_token').defaultTo(null).nullable()
|
||||
table.string('confirmation_token').defaultTo(null).nullable()
|
||||
table.timestamps()
|
||||
table.timestamps(true, true)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ export default class ApiTokens extends BaseSchema {
|
||||
table.string('type').notNullable()
|
||||
table.string('token', 64).notNullable()
|
||||
table.timestamp('expires_at', { useTz: true }).nullable()
|
||||
table.timestamps()
|
||||
table.timestamps(true, true)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user