1 objects
j edited this page 2023-07-02 12:57:13 +05:30

Database Objects

[Documents, pandora*, 0xdb2*)]TOC(heading=Design

Clip Object

{
    brightness: 0.0,
    clip_id: "",
    color: 0.0,
    duration: 0.0,
    id: "", // "item_id/clip_id"
    in: 0,
    item_id: "",
    out: 0,
    saturation: 0.0,
    text: "", // annotation
    type: "", // description|event|keyword|location|note|reference|subtitle|transcript
    user: "", // creator
    volume: ?
}

File Object

{
    channels: 0, // only if is_video
    instances: [{
       path,
       user,
       accessed: 0, // filesystem
       created: 0, // filesystem
       modified: 0, // filesystem
    }]
    published: 0,
    duration: 0.0, // seconds
    episode: 0, // -1 for none
    hash: "", // 0xHash
    height: 0, // only if is_video
    is_audio: false,
    is_extra: false, // is in Extras subfolder
    is_main: false, // is not in subfolder
    is_subtitle: false,
    is_version: false, // is in Versions subfolder
    is_video: false,
    language: "", // "en", "fr", etc., only if is_subtitle
    movie_id: "",
    name: "", // canonical path/file
    part: "", // "" for none
    season: 0, // -1 for none
    sort_name: // sort path/file name
    size: 0,
    version: "", // has a version string,
    width: 0 // only if is_video
}

User Object

{
    created: 0,
    modified: 0,
    history: [{
        id: "", // if type==item
        query: "", // if type==list
        time: 0,
        type: item|list
    }],
    name: "",
    group: user|staff|admin,
    preferences: {}
}