Advertisement
Virajsinh

Project Languages Table

Apr 3rd, 2023 (edited)
969
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.86 KB | Source Code | 0 0
  1. # Language Table
  2.  
  3. CREATE TABLE `tbl_languages` (
  4.   `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  5.   `language` varchar(10) NOT NULL,
  6.   `code` varchar(2) NOT NULL COMMENT 'ISO 639-1 codes',
  7.   `status` enum('active','inactive') NOT NULL DEFAULT 'inactive',
  8.   `created_by` int(11) NOT NULL DEFAULT 0,
  9.   `updated_by` int(11) NOT NULL DEFAULT 0,
  10.   `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  11.   `updated_at` datetime NULL DEFAULT NULL ON UPDATE current_timestamp()
  12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  13.  
  14. INSERT INTO `tbl_languages` (`id`, `language`, `code`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
  15. (NULL, 'english', 'en', 'active', 0, 0, '2023-04-03 10:20:56', NULL),
  16. (NULL, 'hindi', 'hi', 'inactive', 0, 0, '2023-04-03 10:21:50', NULL),
  17. (NULL, 'gujarati', 'gu', 'inactive', 0, 0, '2023-04-03 10:22:05', NULL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement