1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-03 16:34:33 +00:00

Create tables by script.

This commit is contained in:
cuihaikuo
2019-03-27 16:14:00 +08:00
parent 3f5b7e4025
commit dd0519d7c3
18 changed files with 597 additions and 15 deletions

View File

@@ -0,0 +1,9 @@
CREATE TABLE `Group` (`group_id` INTEGER PRIMARY KEY AUTOINCREMENT, `group_name` VARCHAR(255), `creator_name` VARCHAR(255), `timestamp` BIGINT, `type` VARCHAR(32), `parent_group_id` INTEGER);
CREATE TABLE `GroupUser` (`group_id` INTEGER, `user_name` VARCHAR(255), `is_staff` tinyint);
CREATE UNIQUE INDEX groupid_username_indx on `GroupUser` (`group_id`, `user_name`);
CREATE INDEX username_indx on `GroupUser` (`user_name`);
CREATE TABLE GroupDNPair (group_id INTEGER, dn VARCHAR(255));
CREATE TABLE GroupStructure (group_id INTEGER PRIMARY KEY, path VARCHAR(1024));