mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
fix fk for account types
This commit is contained in:
27
db.sql
27
db.sql
@@ -19,6 +19,19 @@
|
||||
-- Table structure for table `accounts`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `account_types`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `account_types` (
|
||||
`account_type_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`account_type_name` varchar(200) NOT NULL,
|
||||
`account_type_description` text DEFAULT NULL,
|
||||
`account_type_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`account_type_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||
`account_type_archived_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`account_type_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `accounts`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
@@ -37,20 +50,6 @@ CREATE TABLE `accounts` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `account_types`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `account_types` (
|
||||
`account_type_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`account_type_name` varchar(200) NOT NULL,
|
||||
`account_type_description` text DEFAULT NULL,
|
||||
`account_type_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`account_type_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||
`account_type_archived_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`account_type_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
--
|
||||
-- Table structure for table `api_keys`
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user