26 lines
688 B
PHP
26 lines
688 B
PHP
|
<?php
|
||
|
/* ----------------------------------------------------------------------
|
||
|
12.12.2022
|
||
|
Добавляем нужные поля
|
||
|
---------------------------------------------------------------------- */
|
||
|
\DB::set("CREATE TABLE IF NOT EXISTS `tasks` (
|
||
|
`id` INTEGER PRIMARY KEY NOT NULL,
|
||
|
`isp_id` TEXT,
|
||
|
`user_id` TEXT,
|
||
|
`mod` TEXT,
|
||
|
`task` TEXT,
|
||
|
`t` TEXT,
|
||
|
`srok` TEXT,
|
||
|
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
|
||
|
FOREIGN KEY (`isp_id`) REFERENCES `users` (`id`)
|
||
|
)");
|
||
|
|
||
|
|
||
|
\DB::set("CREATE TABLE IF NOT EXISTS `zametka` (
|
||
|
`user_id` INTEGER NOT NULL,
|
||
|
`txt` TEXT,
|
||
|
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
|
||
|
)");
|
||
|
|
||
|
|
||
|
?>
|