add file model
This commit is contained in:
parent
53037d26af
commit
acf701da70
10 changed files with 96 additions and 9 deletions
|
@ -14,10 +14,18 @@ class CreateEventsTable extends Migration
|
|||
public function up()
|
||||
{
|
||||
Schema::create('events', function (Blueprint $table) {
|
||||
$table->charset = 'utf8';
|
||||
$table->collation = 'utf8_unicode_ci';
|
||||
$table->bigIncrements('eid');
|
||||
$table->string('name');
|
||||
$table->string('short_name');
|
||||
$table->string('slug');
|
||||
$table->timestamps();
|
||||
$table->timestamp('start')->nullable();
|
||||
$table->timestamp('end')->nullable();
|
||||
$table->timestamp('pre_start')->nullable();
|
||||
$table->timestamp('post_end')->nullable();
|
||||
|
||||
$table->unique('slug','uslug');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue