Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F11543181
2019_09_17_102626_create_wallet_table.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
996 B
Referenced Files
None
Subscribers
None
2019_09_17_102626_create_wallet_table.php
View Options
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
// phpcs:ignore
class
CreateWalletTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'wallets'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
36
);
$table
->
string
(
'description'
,
128
)->
nullable
();
$table
->
string
(
'currency'
,
4
);
$table
->
integer
(
'balance'
);
$table
->
bigInteger
(
'user_id'
);
$table
->
primary
(
'id'
);
$table
->
index
(
'user_id'
);
$table
->
foreign
(
'user_id'
)->
references
(
'id'
)->
on
(
'users'
)->
onDelete
(
'cascade'
);
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'wallets'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Sep 28, 10:16 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1455050
Default Alt Text
2019_09_17_102626_create_wallet_table.php (996 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment