···66#[async_trait::async_trait]
77impl MigrationTrait for Migration {
88 async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> {
99- // Replace the sample below with your own migration scripts
1010-119 manager
1210 .create_table(
1311 Table::create()
···5755}
58565957#[derive(DeriveIden)]
6060-enum Group {
5858+pub enum Group {
6159 Table,
6060+6261 /// Unique integer id
6362 Id,
6363+6464 /// Unique nano-id that is userfacing
6565 NanoId,
6666+6767+ /// Nano-id of the parent of this group
6868+ ParentGroupId,
6969+6670 /// Name of the group
6771 Name,
6868- /// Nano-id of the parent of this group
6969- ParentGroupId,
7272+7073 /// Color of this group
7174 /// NOTE: color is a string that looks like "#FFFFFF"
7275 Color,
7676+7377 /// Priority level of the group
7478 Priority,
7979+7580 /// The relative file path to the location of
7681 /// the description note for this task
7782 DescriptionPath,
8383+7884 /// Creation time
7985 CreatedAt,
8686+8087 /// Last modified
8188 ModifiedAt,
8289}