Skip to content

Commit

Permalink
Update DB
Browse files Browse the repository at this point in the history
  • Loading branch information
kee236 authored Aug 21, 2024
1 parent 13cb694 commit 766e39b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions DB/line.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CREATE TABLE IF NOT EXISTS `line_users_info` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`line_user_id` varchar(200) NOT NULL,
`display_name` varchar(200) DEFAULT NULL,
`picture_url` text DEFAULT NULL,
`status_message` varchar(255) DEFAULT NULL,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `line_config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`app_name` varchar(255) NOT NULL,
`channel_id` varchar(255) NOT NULL,
`channel_secret` varchar(255) NOT NULL,
`channel_access_token` varchar(255) NOT NULL,
`status` enum('0','1') NOT NULL DEFAULT '0',
`deleted` enum('0','1') NOT NULL DEFAULT '0',
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

0 comments on commit 766e39b

Please sign in to comment.