[new] new project

This commit is contained in:
2026-09-20 13:33:09 +08:00
commit ca6a52fb2d
997 changed files with 140250 additions and 0 deletions
@@ -0,0 +1,353 @@
{
"formatVersion": 1,
"database": {
"version": 5,
"identityHash": "c6593ec7c98ef0a0cfcdf50d5969e456",
"entities": [
{
"tableName": "course_tables",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "createdAt",
"columnName": "createdAt",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
}
},
{
"tableName": "courses",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `courseTableId` TEXT NOT NULL, `name` TEXT NOT NULL, `teacher` TEXT NOT NULL, `position` TEXT NOT NULL, `day` INTEGER NOT NULL, `startSection` INTEGER, `endSection` INTEGER, `isCustomTime` INTEGER NOT NULL, `customStartTime` TEXT, `customEndTime` TEXT, `colorInt` INTEGER NOT NULL, `remark` TEXT, PRIMARY KEY(`id`), FOREIGN KEY(`courseTableId`) REFERENCES `course_tables`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "courseTableId",
"columnName": "courseTableId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "teacher",
"columnName": "teacher",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "position",
"columnName": "position",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "day",
"columnName": "day",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "startSection",
"columnName": "startSection",
"affinity": "INTEGER"
},
{
"fieldPath": "endSection",
"columnName": "endSection",
"affinity": "INTEGER"
},
{
"fieldPath": "isCustomTime",
"columnName": "isCustomTime",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "customStartTime",
"columnName": "customStartTime",
"affinity": "TEXT"
},
{
"fieldPath": "customEndTime",
"columnName": "customEndTime",
"affinity": "TEXT"
},
{
"fieldPath": "colorInt",
"columnName": "colorInt",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "remark",
"columnName": "remark",
"affinity": "TEXT"
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [
{
"name": "index_courses_courseTableId",
"unique": false,
"columnNames": [
"courseTableId"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_courses_courseTableId` ON `${TABLE_NAME}` (`courseTableId`)"
}
],
"foreignKeys": [
{
"table": "course_tables",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"courseTableId"
],
"referencedColumns": [
"id"
]
}
]
},
{
"tableName": "course_weeks",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`courseId` TEXT NOT NULL, `weekNumber` INTEGER NOT NULL, PRIMARY KEY(`courseId`, `weekNumber`), FOREIGN KEY(`courseId`) REFERENCES `courses`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "courseId",
"columnName": "courseId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "weekNumber",
"columnName": "weekNumber",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"courseId",
"weekNumber"
]
},
"indices": [
{
"name": "index_course_weeks_courseId",
"unique": false,
"columnNames": [
"courseId"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_course_weeks_courseId` ON `${TABLE_NAME}` (`courseId`)"
},
{
"name": "index_course_weeks_weekNumber",
"unique": false,
"columnNames": [
"weekNumber"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_course_weeks_weekNumber` ON `${TABLE_NAME}` (`weekNumber`)"
}
],
"foreignKeys": [
{
"table": "courses",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"courseId"
],
"referencedColumns": [
"id"
]
}
]
},
{
"tableName": "time_slots",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`number` INTEGER NOT NULL, `startTime` TEXT NOT NULL, `endTime` TEXT NOT NULL, `courseTableId` TEXT NOT NULL, `alias` TEXT, PRIMARY KEY(`number`, `courseTableId`), FOREIGN KEY(`courseTableId`) REFERENCES `course_tables`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "number",
"columnName": "number",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "startTime",
"columnName": "startTime",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "endTime",
"columnName": "endTime",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "courseTableId",
"columnName": "courseTableId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "alias",
"columnName": "alias",
"affinity": "TEXT"
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"number",
"courseTableId"
]
},
"indices": [
{
"name": "index_time_slots_courseTableId",
"unique": false,
"columnNames": [
"courseTableId"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_time_slots_courseTableId` ON `${TABLE_NAME}` (`courseTableId`)"
}
],
"foreignKeys": [
{
"table": "course_tables",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"courseTableId"
],
"referencedColumns": [
"id"
]
}
]
},
{
"tableName": "course_table_config",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`courseTableId` TEXT NOT NULL, `showWeekends` INTEGER NOT NULL, `semesterStartDate` TEXT, `semesterTotalWeeks` INTEGER NOT NULL, `defaultClassDuration` INTEGER NOT NULL, `defaultBreakDuration` INTEGER NOT NULL, `firstDayOfWeek` INTEGER NOT NULL, PRIMARY KEY(`courseTableId`), FOREIGN KEY(`courseTableId`) REFERENCES `course_tables`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "courseTableId",
"columnName": "courseTableId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "showWeekends",
"columnName": "showWeekends",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "semesterStartDate",
"columnName": "semesterStartDate",
"affinity": "TEXT"
},
{
"fieldPath": "semesterTotalWeeks",
"columnName": "semesterTotalWeeks",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "defaultClassDuration",
"columnName": "defaultClassDuration",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "defaultBreakDuration",
"columnName": "defaultBreakDuration",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "firstDayOfWeek",
"columnName": "firstDayOfWeek",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"courseTableId"
]
},
"indices": [
{
"name": "index_course_table_config_courseTableId",
"unique": true,
"columnNames": [
"courseTableId"
],
"orders": [],
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_course_table_config_courseTableId` ON `${TABLE_NAME}` (`courseTableId`)"
}
],
"foreignKeys": [
{
"table": "course_tables",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"courseTableId"
],
"referencedColumns": [
"id"
]
}
]
}
],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c6593ec7c98ef0a0cfcdf50d5969e456')"
]
}
}