mirror of
https://github.com/grocy/grocy.git
synced 2025-09-29 19:12:24 +00:00
Implement custom entities / objects (closes #242)
This commit is contained in:
17
migrations/0085.sql
Normal file
17
migrations/0085.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
CREATE TABLE userentities (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
name TEXT NOT NULL,
|
||||
caption TEXT NOT NULL,
|
||||
description TEXT,
|
||||
show_in_sidebar_menu TINYINT NOT NULL DEFAULT 1,
|
||||
icon_css_class TEXT,
|
||||
row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime')),
|
||||
|
||||
UNIQUE(name)
|
||||
);
|
||||
|
||||
CREATE TABLE userobjects (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
userentity_id INTEGER NOT NULL,
|
||||
row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime'))
|
||||
);
|
Reference in New Issue
Block a user