mirror of
https://github.com/AZ-Studio-2023/DNS.git
synced 2026-05-06 21:51:25 +08:00
9 lines
277 B
Python
9 lines
277 B
Python
from app import db
|
|
|
|
class Card(db.Model):
|
|
id = db.Column(db.Integer, primary_key=True)
|
|
code = db.Column(db.String(12), unique=True, nullable=False)
|
|
points = db.Column(db.Integer)
|
|
is_used = db.Column(db.Integer, default=0)
|
|
can_used = db.Column(db.Integer)
|