[feature/backend] overall enhancement of image uploading
All checks were successful
Build Backend / Build Docker Image (push) Successful in 5m3s
All checks were successful
Build Backend / Build Docker Image (push) Successful in 5m3s
This commit is contained in:
parent
6e1be3d513
commit
3e6181e578
13 changed files with 740 additions and 314 deletions
|
@ -16,11 +16,14 @@ type Media struct {
|
|||
func (Media) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
field.String("storage_id").
|
||||
StorageKey("storage_id").
|
||||
NotEmpty().
|
||||
Unique(),
|
||||
field.String("original_name").
|
||||
StorageKey("original_name").
|
||||
NotEmpty(),
|
||||
field.String("mime_type").
|
||||
StorageKey("mime_type").
|
||||
NotEmpty(),
|
||||
field.Int64("size").
|
||||
Positive(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue