2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00
Files
panel/database/migrations/20230621124816_create_plugins_table.up.sql
2023-06-22 00:09:56 +08:00

15 lines
612 B
SQL

CREATE TABLE plugins
(
id integer PRIMARY KEY AUTOINCREMENT NOT NULL,
slug varchar(255) NOT NULL,
version varchar(255) NOT NULL,
show boolean DEFAULT 0 NOT NULL,
show_order integer DEFAULT 0 NOT NULL,
created_at datetime NOT NULL,
updated_at datetime NOT NULL
);
CREATE UNIQUE INDEX plugins_slug_unique ON plugins (slug);
CREATE INDEX plugins_show_index ON plugins (show);
CREATE INDEX plugins_show_order_index ON plugins (show_order);