Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fj-livekit
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xianyang
fj-livekit
Commits
38488610
Commit
38488610
authored
Jan 20, 2024
by
郑磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复数据库创建时间默认值BUG
parent
7a3d229b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
orm.py
src/app/orm.py
+1
-1
examine.py
src/modules/examine.py
+3
-3
friend.py
src/modules/friend.py
+3
-3
room.py
src/modules/room.py
+1
-1
No files found.
src/app/orm.py
View file @
38488610
...
...
@@ -56,7 +56,7 @@ db = SQLAlchemy(query_class=Query)
class
Common
(
object
):
"""orm通用操作"""
create_time
=
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
()
)
create_time
=
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
)
status
=
Column
(
SmallInteger
,
default
=
0
)
_privacy_fields
=
{
'status'
}
...
...
src/modules/examine.py
View file @
38488610
...
...
@@ -11,7 +11,7 @@ class Examineline(Common, db.Model):
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
,
autoincrement
=
True
)
content_old
=
db
.
Column
(
db
.
Text
,
comment
=
"原内容"
)
content_new
=
db
.
Column
(
db
.
Text
,
comment
=
"新内容"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
()
,
comment
=
"提交时间"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
,
comment
=
"提交时间"
)
type
=
db
.
Column
(
db
.
Integer
,
comment
=
"1是昵称2头像地址3.个签4.手机号"
)
# 0是未审核,1.是审核中。2.是审核成功。3.审核失败
examine_people
=
db
.
Column
(
db
.
String
(
100
),
comment
=
"审核人"
)
...
...
@@ -25,7 +25,7 @@ class Examinecontent(Common, db.Model):
fcmid
=
db
.
Column
(
Integer
,
comment
=
"朋友圈信息id"
)
uid
=
db
.
Column
(
BIGINT
,
comment
=
"用户id"
)
content
=
db
.
Column
(
db
.
Text
,
comment
=
"内容"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
()
,
comment
=
"提交时间"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
,
comment
=
"提交时间"
)
res_type
=
db
.
Column
(
Integer
,
comment
=
"0 图片, 1 视频 2文字"
)
examine_people
=
db
.
Column
(
String
(
225
),
comment
=
"审核人"
)
file_name
=
db
.
Column
(
String
(
225
),
comment
=
"文件地址"
)
...
...
@@ -40,7 +40,7 @@ class Examinecomment(Common, db.Model):
id
=
db
.
Column
(
Integer
,
primary_key
=
True
,
autoincrement
=
True
)
uid
=
db
.
Column
(
BIGINT
,
comment
=
"用户id"
)
content
=
db
.
Column
(
Text
,
comment
=
"评论内容"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
()
,
comment
=
"提交时间"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
,
comment
=
"提交时间"
)
examine_people
=
db
.
Column
(
String
(
225
),
comment
=
"审核人"
)
examine_time
=
db
.
Column
(
TIMESTAMP
,
comment
=
"审核时间"
)
audit_status
=
db
.
Column
(
Integer
,
default
=
0
,
comment
=
"0是未审核,1.是审核中。2.是审核成功。3.审核失败"
)
...
...
src/modules/friend.py
View file @
38488610
...
...
@@ -10,7 +10,7 @@ class FriendTimeline(Common, db.Model):
uid
=
db
.
Column
(
db
.
BIGINT
,
comment
=
"用户id"
)
fcmid
=
db
.
Column
(
db
.
Integer
,
comment
=
"朋友圈信息id"
)
is_own
=
db
.
Column
(
db
.
Integer
,
comment
=
"是否是自己的 0是1不是"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
()
,
comment
=
"创建时间"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
,
comment
=
"创建时间"
)
# missu_roster 好友表
...
...
@@ -29,7 +29,7 @@ class FriendMessage(Common, db.Model):
content
=
db
.
Column
(
db
.
String
(
500
),
comment
=
"内容文字"
)
file_name
=
db
.
Column
(
db
.
String
(
500
),
comment
=
"文件地址"
)
location
=
db
.
Column
(
db
.
String
(
100
),
comment
=
"ip位置"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
()
,
comment
=
"创建时间"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
,
comment
=
"创建时间"
)
status
=
db
.
Column
(
SmallInteger
,
default
=
2
)
audit_status
=
db
.
Column
(
db
.
Integer
,
default
=
0
,
comment
=
"0是未审核,1.是审核中。2.是审核成功。3.审核失败"
)
watch_uid
=
db
.
Column
(
db
.
String
(
500
),
comment
=
"权限uid用户id"
)
...
...
@@ -43,7 +43,7 @@ class FriendComment(Common, db.Model):
review_to
=
db
.
Column
(
db
.
BIGINT
,
comment
=
"回复对象id"
)
uid
=
db
.
Column
(
db
.
BIGINT
,
comment
=
"评论者id"
)
content
=
db
.
Column
(
db
.
String
(
500
),
comment
=
"内容"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
()
,
comment
=
"创建时间"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
,
comment
=
"创建时间"
)
status
=
db
.
Column
(
SmallInteger
,
default
=
2
)
like_count
=
db
.
Column
(
db
.
Integer
,
comment
=
"点赞数"
)
is_look
=
db
.
Column
(
db
.
Integer
,
default
=
0
,
comment
=
"0未查看,1已查看"
)
...
...
src/modules/room.py
View file @
38488610
...
...
@@ -14,7 +14,7 @@ class Room(Common, db.Model):
max_participants
=
db
.
Column
(
db
.
Integer
,
comment
=
"限制房间内的参与者人数"
)
metadatas
=
db
.
Column
(
db
.
String
(
500
),
comment
=
"原数据存储"
)
create_user
=
db
.
Column
(
db
.
String
(
100
),
comment
=
"创建者"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
()
,
comment
=
"创建者"
)
create_time
=
db
.
Column
(
TIMESTAMP
,
default
=
datetime
.
datetime
.
now
,
comment
=
"创建者"
)
node_id
=
db
.
Column
(
db
.
String
(
320
),
comment
=
"节点编号"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment