183 lines
3.6 KiB
PHP
183 lines
3.6 KiB
PHP
<?php
|
|
return array (
|
|
'ask_id' =>
|
|
array (
|
|
'name' => 'ask_id',
|
|
'type' => 'int(10) unsigned',
|
|
'notnull' => false,
|
|
'default' => NULL,
|
|
'primary' => true,
|
|
'autoinc' => true,
|
|
),
|
|
'type_id' =>
|
|
array (
|
|
'name' => 'type_id',
|
|
'type' => 'int(10) unsigned',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'users_id' =>
|
|
array (
|
|
'name' => 'users_id',
|
|
'type' => 'int(10) unsigned',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'ask_title' =>
|
|
array (
|
|
'name' => 'ask_title',
|
|
'type' => 'varchar(80)',
|
|
'notnull' => false,
|
|
'default' => '',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'is_recom' =>
|
|
array (
|
|
'name' => 'is_recom',
|
|
'type' => 'tinyint(1)',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'status' =>
|
|
array (
|
|
'name' => 'status',
|
|
'type' => 'tinyint(1)',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'click' =>
|
|
array (
|
|
'name' => 'click',
|
|
'type' => 'int(10) unsigned',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'replies' =>
|
|
array (
|
|
'name' => 'replies',
|
|
'type' => 'int(10) unsigned',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'content' =>
|
|
array (
|
|
'name' => 'content',
|
|
'type' => 'text',
|
|
'notnull' => false,
|
|
'default' => NULL,
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'url' =>
|
|
array (
|
|
'name' => 'url',
|
|
'type' => 'varchar(255)',
|
|
'notnull' => false,
|
|
'default' => '',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'users_ip' =>
|
|
array (
|
|
'name' => 'users_ip',
|
|
'type' => 'varchar(50)',
|
|
'notnull' => false,
|
|
'default' => '',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'is_review' =>
|
|
array (
|
|
'name' => 'is_review',
|
|
'type' => 'tinyint(1)',
|
|
'notnull' => false,
|
|
'default' => '1',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'follow' =>
|
|
array (
|
|
'name' => 'follow',
|
|
'type' => 'tinyint(1)',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'solve_time' =>
|
|
array (
|
|
'name' => 'solve_time',
|
|
'type' => 'int(10) unsigned',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'bestanswer_id' =>
|
|
array (
|
|
'name' => 'bestanswer_id',
|
|
'type' => 'int(10) unsigned',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'sort_order' =>
|
|
array (
|
|
'name' => 'sort_order',
|
|
'type' => 'int(10)',
|
|
'notnull' => false,
|
|
'default' => '100',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'add_time' =>
|
|
array (
|
|
'name' => 'add_time',
|
|
'type' => 'int(10) unsigned',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'update_time' =>
|
|
array (
|
|
'name' => 'update_time',
|
|
'type' => 'int(10) unsigned',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'money' =>
|
|
array (
|
|
'name' => 'money',
|
|
'type' => 'decimal(8,2)',
|
|
'notnull' => false,
|
|
'default' => '0.00',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
'is_del' =>
|
|
array (
|
|
'name' => 'is_del',
|
|
'type' => 'tinyint(1)',
|
|
'notnull' => false,
|
|
'default' => '0',
|
|
'primary' => false,
|
|
'autoinc' => false,
|
|
),
|
|
); |