mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-25 01:59:47 +02:00
use quicktalk as comment API
This commit is contained in:
12
talk/models/CommentModel.lua
Normal file
12
talk/models/CommentModel.lua
Normal file
@ -0,0 +1,12 @@
|
||||
BaseModel:subclass("CommentModel", {
|
||||
registry = {},
|
||||
name = "comments",
|
||||
fields = {
|
||||
pid = "INTEGER",
|
||||
name = "TEXT",
|
||||
email = "TEXT",
|
||||
content = "TEXT",
|
||||
time = "NUMERIC",
|
||||
rid = "INTEGER DEFAULT 0"
|
||||
}
|
||||
})
|
2
talk/models/PagesModel.lua
Normal file
2
talk/models/PagesModel.lua
Normal file
@ -0,0 +1,2 @@
|
||||
BaseModel:subclass("PagesModel",
|
||||
{registry = {}, name = "pages", fields = {uri = "TEXT"}})
|
Reference in New Issue
Block a user