VvebOIDC/install/sql/sqlite/schema/user/user_points.sql

12 lines
349 B
SQL

DROP TABLE IF EXISTS `user_points`;
CREATE TABLE `user_points` (
`user_points_id` INTEGER PRIMARY KEY AUTOINCREMENT,
`user_id` INT NOT NULL DEFAULT '0',
`order_id` INT NOT NULL DEFAULT '0',
`content` text NOT NULL,
`points` INTEGER NOT NULL DEFAULT '0',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
-- PRIMARY KEY (`user_points_id`)
);