mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
delete Visitor
This commit is contained in:
@@ -17,21 +17,6 @@
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for category
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `visitor`;
|
||||
CREATE TABLE `visitor`
|
||||
(
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`ip` varchar(200) NOT NULL UNIQUE,
|
||||
`updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
|
||||
`created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for category
|
||||
-- ----------------------------
|
||||
@@ -176,15 +161,6 @@ INSERT INTO `permission`
|
||||
VALUES (48, 'Update AdminLog', 'AdminLog', 3);
|
||||
INSERT INTO `permission`
|
||||
VALUES (49, 'Read AdminLog', 'AdminLog', 4);
|
||||
INSERT INTO `permission`
|
||||
VALUES (50, 'Create Visitor', 'Visitor', 1);
|
||||
INSERT INTO `permission`
|
||||
VALUES (51, 'Delete Visitor', 'Visitor', 2);
|
||||
INSERT INTO `permission`
|
||||
VALUES (52, 'Update Visitor', 'Visitor', 3);
|
||||
INSERT INTO `permission`
|
||||
VALUES (53, 'Read Visitor', 'Visitor', 4);
|
||||
COMMIT;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for product
|
||||
|
||||
@@ -82,9 +82,3 @@ class Config(Model):
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.pk}#{self.label}"
|
||||
|
||||
|
||||
class Visitor(Model):
|
||||
ip = fields.CharField(max_length=200, unique=True)
|
||||
updated_at = fields.DatetimeField(auto_now=True)
|
||||
created_at = fields.DatetimeField(auto_now_add=True)
|
||||
|
||||
Reference in New Issue
Block a user