from data import Registry, RowModel, Table from data.columns import String, Timestamp, Integer, Bool class CustomCmd(RowModel): _tablename_ = 'customcmds' _cache_ = {} commandid = Integer(primary=True) communityid = Integer() name = String() response = String() cooldown_bucket_size = Integer() cooldown_bucket_dur = Integer() permlevel = Integer() maskperms = Bool() creatorid = Integer() description = String() docstring = String() created_at = Timestamp() _timestamp = Timestamp() class CustomCmdData(Registry): VERSION = ('CUSTOMCMD', 1) customcmds = CustomCmd.table customcmd_aliases = Table('customcmd_aliases')