Skip to content

Add documents model #156

Description

@scottyeager

As a stopgap until the hero filesystem is ready, we are thinking to add a simple document model to the heromodels.

It can possibly be as simple as:

pub struct Document {
	db.Base
pub mut:
	name        string
	contents    string
}

Or if there are concerns about max size on one string entry:

pub struct Document {
	db.Base
pub mut:
	name        string
	contents    []u32 // list of DocumentContents ids
}

pub struct DocumentContents {
	db.Base
pub mut:
	contents    string
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions