You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
539 B

#!/usr/bin/env python3
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String
StateBase = declarative_base()
class StateVault(StateBase):
__tablename__ = 'Vault'
id = Column('id', Integer, primary_key=True)
name = Column('name', String(32), unique=True)
path = Column('path', String(260), unique=True)
root = Column('root', String(260), unique=True)
def __init__(self, name, path, root):
self.name = name
self.root = root
self.path = path