changes
This commit is contained in:
11
plugins/plant/models.py
Normal file
11
plugins/plant/models.py
Normal file
@ -0,0 +1,11 @@
|
||||
from datetime import datetime
|
||||
from app import db
|
||||
|
||||
class Plant(db.Model):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
name = db.Column(db.String(128), nullable=False)
|
||||
type = db.Column(db.String(64))
|
||||
notes = db.Column(db.Text)
|
||||
is_active = db.Column(db.Boolean, default=True)
|
||||
created_at = db.Column(db.DateTime, default=datetime.utcnow)
|
||||
updated_at = db.Column(db.DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
|
Reference in New Issue
Block a user