feat: Add base to project

Signed-off-by: Avior <git@avior.me>
This commit is contained in:
2024-05-16 16:45:50 +02:00
parent 9b2d412a9e
commit f50ec828fb
36 changed files with 5248 additions and 1698 deletions

22
src/models/State/index.ts Normal file
View File

@ -0,0 +1,22 @@
import Schema, { type Impl } from 'models/Schema'
const schema = new Schema({
/**
* the project ID
*/
id: {type: String, database: {unique: true, index: true, auto: true}},
project: String, // project id
/**
* the email the project was created from
*/
name: { type: String, nullable: true },
color: { type: String, nullable: true },
preset: { type: Boolean, defaultValue: false }
})
export default schema
export type ProjectObj = Impl<typeof schema>